?? create_freq_offset.m
字號:
function offset_sig = create_freq_offset(input_signal, freq_offset);
global sim_consts;
n_signals = size(input_signal,1);
% create a timebasetime_base = (0:(length(input_signal)-1))/sim_consts.SampFreq;
% create phase_rotation vectorphase_rotation = repmat(exp(j*2*pi*freq_offset*time_base), n_signals, 1);% and apply it to the signal;offset_sig = input_signal.*phase_rotation;
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -