?? doc_phasetree.m
字號:
M_ary_number = 2;
modulation_index = 2/3;
pulse_length = 2;
samples_per_symbol = 8;
opts = simset('SrcWorkspace','Current',...
'DstWorkspace','Current');
L = 5; % Symbols to display
pmat = [];
for ip_sig = 0:(M_ary_number^L)-1
s = de2bi(ip_sig,L,M_ary_number,'left-msb');
% Apply the mapping of the input symbol to the CPM
% symbol 0 -> -(M-1), 1 -> -(M-2), etc.
s = 2*s'+1-M_ary_number;
sim('doc_phasetree', .9, opts); % Run model to generate x.
% Next column of pmat
pmat(:,ip_sig+1) = unwrap(angle(x(:)));
end;
pmat = pmat/(pi*modulation_index);
t = (0:L*samples_per_symbol-1)'/samples_per_symbol;
plot(t,pmat); figure(gcf); % Plot phase tree.
grid on;
title('GMSK phase tree');
xlabel('t/T'); ylabel('
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -