Why dosen't this Fourier Transform compute?
4 次查看(过去 30 天)
显示 更早的评论
Hey! I'm trying to take a fourier transform of a particular function and Matlab doesn't seem to be able to compute it, I tried the same function in Mathmatica and it works just fine so I'm not sure whats gone wrong in this case. I used the following code:
% Program to compute the Impulse response of a third order Butterworth % filter.
syms w t
oc = 100e3*2*pi; %Cut off frequency
n = 3 %Order Number
%Transfer Function
H = oc^n /(((1i*w)+oc)*(((1i*w)^2)+(oc^2)+(2*(1i*w)*oc*sin(pi/(2*n)))));
x = fourier(H, w, t)
Impulse3 = matlabFunction(x)
0 个评论
回答(1 个)
Image Analyst
2015-6-24
I don't have the fourier() function. Does it show up in your help? Maybe it's in a toolbox that you have but that I don't have. Maybe that's what they call it in Mathematica but you didn't change the name when you came to MATLAB???
What I would do (because I don't have that fourier() function) is to use the fft() function . Can you try that?
Don't double space your code, just paste, highlight, and click {}Code. I fixed your formatting but please read this for next time. http://www.mathworks.com/matlabcentral/answers/13205-tutorial-how-to-format-your-question-with-markup
Also, you forgot to paste in all the red error text so I'm guessing you've never read these guidelines: http://www.mathworks.com/matlabcentral/answers/6200-tutorial-how-to-ask-a-question-on-answers-and-get-a-fast-answer. Please paste in whatever you have that tells you that "Matlab doesn't seem to be able to compute it", such as an error message.
2 个评论
Image Analyst
2015-6-24
Hopefully someone with that toolbox will answer. Or else, call the Mathworks technical support.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Assumptions 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!