文档详情

msk的调制解调源代码(国外英文资料).doc

发布:2017-06-10约2.71万字共21页下载文档
文本预览下载声明
msk的调制解调源代码(国外英文资料) MSKs modulated MATLAB source code In this paper, by shenfei20 contribution MSKs modulated MATLAB source code Function out = delay (data, n, sample_number) % data: delayed data % sample_number: the number of code elements out = zeros (1, length (data)); Out (n * sample_number + 1: length (data)) = data (1: length (data) -n * sample_number); Function [data_diff] = difference (data) % difference encoding % * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * % % data data_diff after input signal differential coding signal % * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * % -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- data_diff = zeros (1, length (data)); Data_diff (1) = 1 * data (1); For I = 2: length (data) data_diff (I) = data_diff (I - 1) * data (I); End % * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * % 1 for differential encoding the initial reference Function [signal_out, I_out Q_out] = mod_msk (data, data_len sample_number, Rb) % MSK baseband modulation % * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * % % data data_len modulation signal element number Each element sampling points % sample_number % Rb % signal_out Code element rate base band modulation output I channel output Q % * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * % data_len is equal to 10; % sample_number = 8; % Rb = 16,0
显示全部
相似文档