fourier transform problem
显示 更早的评论
Hi, i am trying make my own matlab program for fourier transform, whose result should be same as inbuilt library function fourier(f).
my program is:
function [fw]=myfourier(fx) syms x w; w=1; fw=int(fx*exp(-i*w*x),x,-pi,pi); and answer came are:
-pi*i for the myfourier(sin(x))
but by the library function:fourier(sin(x)) i got:
-pi*i(dirac(w - 1) - dirac(w + 1))*
and other answers are also different for different functions.
please help me for this program.
thanxs
2 个评论
Alok Verma
2011-9-9
Leyla Ibrahimli
2020-11-21
I also experience the same problem. The inverse fourier works with formula, because you dont have diracs there. I also tried (rewrite, f, dirac) but dirac is not a valid command in rewrite. So, if anyone solved the issue, it would be very nice to see the code thanks!
回答(1 个)
Walter Roberson
2011-9-8
function [F(v)]=myfourier3(f(u))
is not legal syntax in MATLAB.
Please post your actual code.
2 个评论
Alok Verma
2011-9-9
Walter Roberson
2011-9-9
fourier involves integration from -infinity to +infinity, not -pi to +pi
类别
在 帮助中心 和 File Exchange 中查找有关 Code Performance 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!