What will this function return
정보
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
이전 댓글 표시
Hello, I understand the handle of function @f, my question is about the fft and ifft part.
c0 = fftshift(1i*(-n/2:1:n/2-1)');
D1 = @(f) real(ifft(c0.*fft(f)));
What will D1 return?
Thanks
댓글 수: 0
답변 (1개)
the cyclist
2017년 3월 20일
0 개 추천
댓글 수: 2
Wei Wang
2017년 3월 20일
Guillaume
2017년 3월 20일
I'm not sure what you want us to tell you other than a handle to an anonymous function that calculates the real part of the inverse fft of c0 multiplied by the fft of f.
As anonymous functions go, this is not a very well constructed function though, since it multiplies a fixed length vector with a variable length input. Unless f is a row vector of length n the function will error.
이 질문은 마감되었습니다.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!