How to calculate Discrete Fourier transform of a matrix by numerically?
조회 수: 1 (최근 30일)
이전 댓글 표시
Here I am able write code to find out DFT of array numerically with out using for loop(2 nd for loop), I am facing problem to find out DFT by using 2 for loop in following code, in place of 0 1 2 3, I have to use for loop. How to extend this 1D DFT to find out DFT of matrix. Example matrix A=[3 4;5 6]
clear all;
clc;
close all;
x=[24 8 12 16];
A=0;
B=0;
C=0;
D=0;
for xi=1:1:4
A=A+1/4*(x(xi)*exp(-1i*2*pi*(xi-1)*0/4));
B=B+1/4*(x(xi)*exp(-1i*2*pi*(xi-1)*1/4));
C=C+1/4*(x(xi)*exp(-1i*2*pi*(xi-1)*2/4));
D=D+1/4*(x(xi)*exp(-1i*2*pi*(xi-1)*3/4));
end
E=[A B C D]
Thank you very much for this kind help in advance
Yours
Mohd abdul Gaffar
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!