how to build a Simulink HDL block set for FREQUENCY SHIFTING process with a for loop in the MATLAB

1 次查看(过去 30 天)
% 5MHz carrier
fs = 7.68;
tdw=LTE5_3_1.waveform;
%% SHOLDER REMOVING
shape5_out = conv(tdw,shape5);
%% UPSAMPLING AND LOW PASS FILTERING
fs3 = 491.52;
up5_out = interp(shape5_out,64);
%% NCO operation
fc4 = 40; %shift by 40 Mhz
for ii = 1:length(up5_out)
carr_1shifted(ii) = up5_out(ii).*exp(1i*2*pi*fc4/fs3*ii);
end

采纳的回答

Bharath Venkataraman
The NCO HDL Optimized block along with a multiply block can be used to generate the shift.
  2 个评论
Fayaz
Fayaz 2023-7-7
there no proper guidance to perform this. i think this has to be done with the use of lookup table, isnt it? can you help me becasue the my submission is around the corner

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Code Generation 的更多信息

产品


版本

R2023a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by