How do I plot a fourier transform?
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
syms t w
x1 = sin(2*pi*20*t)*cos(2*pi*2000*t);
x2 = sin(2*pi*40*t)*cos(2*pi*4000*t);
x = x1+x2;
X= fourier(x,t,w)
mag = abs(X)
I can't seem to figure out how to plot this.
Antworten (1)
Walter Roberson
am 4 Dez. 2012
mag_func = matlabFunction(mag, w);
wrange = linspace(-100, 100, 1000); %adjust as desired
plot(wrange, mag_func(wrange))
0 Kommentare
Siehe auch
Kategorien
Mehr zu Frequency Transformations finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!