Why dosen't this Fourier Transform compute?
7 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (1)
Image Analyst
el 24 de Jun. de 2015
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 comentarios
Image Analyst
el 24 de Jun. de 2015
Hopefully someone with that toolbox will answer. Or else, call the Mathworks technical support.
Ver también
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!