Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

I havea trouble plotting the Frequency response of a fourier transform

Asked by Tariq on 19 Nov 2012

Dear All, Please guide me that how can I plot the frequency response from the Fourier transform of impulse response. I estimated the impulse response from the sensor. I took the fourier transform of the impulse response. Now I want to see the frequency response. I should be very greatful if somebody help me in this regard.

Thanks in advance

0 Comments

Tariq

1 Answer

Answer by Matt J on 19 Nov 2012
Accepted answer

Use the PLOT command

5 Comments

Tariq on 19 Nov 2012

The evaluated answer is look like this: H(f)=j*8*PI*tau*f/(1+4*PI^2*tau^2*f^2)^2 Now I don't know how to plot amplitude frequency response. Does it make sense?

Matt J on 19 Nov 2012

Here's an alternative using FPLOT,

H= @(f) abs(j*8*pi*tau*f/(1+4*pi^2*tau^2*f^2)^2);
fplot(H,[-3,3])
Tariq on 19 Nov 2012

Thanks, it works fine.

Matt J

Contact us