필터 지우기
필터 지우기

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

조회 수: 2 (최근 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
Bharath Venkataraman 2023년 7월 6일
The NCO HDL Optimized block along with a multiply block can be used to generate the shift.
  댓글 수: 2
Fayaz
Fayaz 2023년 7월 7일
please can you give a guidance how to perform the procedure with the above code given. please it would be huge help
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에서 HDL Code Generation에 대해 자세히 알아보기

제품


릴리스

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by