What is the problem in this code?
Ältere Kommentare anzeigen
f0=100;
f=(0:f0/40:f0*2);
Ts=1/fs;
n=0:8;
xs = 5*cos(2*pi*f0*n*Ts);
i=fft(xs);
plot(f,abs(i(1:81)))
1 Kommentar
Hassan Ali Shah
am 2 Jan. 2015
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Digital Filter Analysis finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!