create_freq_offset.m

来自「demo ofdm using matlab」· M 代码 · 共 20 行

M
20
字号
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 + =
减小字号Ctrl + -
显示快捷键?