To get frequency response using fft from input and output data

3 visualizaciones (últimos 30 días)
Ali Imran Siddiqui
Ali Imran Siddiqui el 7 de Dic. de 2015
Editada: Geoff Hayes el 8 de Dic. de 2015
Hello...! I'm trying to get the frequency response from simulated input and output data using fft commands but the results are not suitable please check the command as mention below
m=1000
n = pow2(nextpow2(N))
A=fft(x,n);
B=fft(y,n);
C=A./B;
D=abs(C);
E=mag2db(D);
Fs=10e+3;
f = (0:n-1)*(Fs/n);
semilogx(f,E)
grid on
Pease tell me if someone find my mistake. i'm also not sure these commands are correct to draw fft from input and output data. I'll be very thankful if someone provide me correct commands. Thanx

Respuestas (0)

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by