how to build a Simulink HDL block set for FREQUENCY SHIFTING process with a for loop in the MATLAB
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Fayaz
am 6 Jul. 2023
Kommentiert: Fayaz
am 7 Jul. 2023
% 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
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1427788/image.jpeg)
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!