《DSP using MATLAB》Problem 5.2
阿新 • • 發佈:2018-04-06
idt -- gpo eight printf 分享圖片 this matlab image
代碼:
%% ---------------------------------------------------------------------------------- %% Output Info about this m-file fprintf(‘\n*******************************************************************\n‘); fprintf(‘ <DSP using MATLAB> Problem 5.2 \n\n‘); banner(); %% ---------------------------------------------------------------------------------- % ------------------------------------ % X1(k) % ------------------------------------ Xk = [4, 3*j, -3*j]; N = 3; xn_1 = idfs(Xk, N) % ------------------------------------ % X2(k) % ------------------------------------ Xk = [j, 2*j, 3*j, 4*j]; N = 4; xn_2 = idfs(Xk, N) % ------------------------------------ % X3(k) % ------------------------------------ Xk = [1, 2+3*j, 4, 2-3*j]; N = 4; xn_3 = idfs(Xk, N) % ------------------------------------ % X4(k) % ------------------------------------ Xk = [0, 0, 2, 0, 0]; N = 5; xn_4 = idfs(Xk, N) % ------------------------------------ % X5(k) % ------------------------------------ Xk = [3, 0, 0, 0, -3, 0, 0, 0]; N = 8; xn_5 = idfs(Xk, N)
運行結果:
《DSP using MATLAB》Problem 5.2