完整msk的MATLAB源代码

function out = delay(data,n,sample_number)
%data:延迟的数据
%n:延迟码元个数
%sample_number:码元采样个数
out = zeros(1,length(data));
out(n*sample_number+1:length(data)) = data(1:length(data)-n*sample_number);





function [data_diff] = difference(data)
%差分编码
%**************************************************************************
%data           输入信号
%data_diff      差分编码后信号
%**************************************************************************
 
%--------------------------------------------------------------------------
data_diff = zeros(1,length(data));
data_diff(1) = 1 * data(1);   %1为差分编码的初始参考值
for i = 2:length(data)
    data_diff(i) = data_diff(i-1) * data(i);
end
%**************************************************************************





function [signal_out,I_out,Q_out] = mod_msk(data,data_len,sa

你可能感兴趣的:(完整msk的MATLAB源代码)