The output of the following codes are [code]i fft([1,2],2,2) ii. fft([1,2],2)[/code]

Trang Esther

New member
The output of the following codes are
Code:
i fft([1,2],2,2)
ii. fft([1,2],2)
A. same
B. different
C. I will give error
D. ii wil give error
 
Answer: a
Explanation: The result of i is a 2 point DFT of the input vector but it treats the input vector as a matrix and returns the DFT of the elements of the matrix row-wise. Hence, there is only one row which is the vector itself. Hence, the results of both codes will be same.
 

Tìm kiếm

Back
Top