资源简介
MSK调制Matlatb代码.
输入发射比特
实现I Q两路比特图形。
输出MSK波形。
代码片段和文件信息
function [ signal ] = msk_mod( bit_streamfrequencyTbEb )
% %UNtitleD Summary of this function goes here
% % Detailed explanation goes here
% clc;
% clear all;
% close all;
%
% % bitstream to be tx
% bit_stream=[1 0 0 1 0 0 1 1];
%
f=frequency;
%
% % carrier frequency
% f=30;
%
% % bit energy
%
% Eb=1;
% %
% % bit period
% Tb=0.001;
%time
t=0.001 : .001 : 1;
% time for p(t)
% t2=0.01:.01:(2*Tb);
nn=length(bit_stream);
amp=sqrt(2*Eb);
% make the data stream length even
if (mod(nn2)~=0)
bit_stream(1nn+1)=0;
nn=nn+1;
end
% length of bit stream
N=length(bit_stream);
m_i=zeros(1N/2);% Even bit stream
m_q=zeros(1N/2);% Odd bit stream
a=1;
% Generate the odd
- 上一篇:matlab7.1win764位破解版.rar
- 下一篇:频域块LMS算法
评论
共有 条评论