How do I plot a fourier transform?
1 回表示 (過去 30 日間)
古いコメントを表示
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.
回答 (1 件)
Walter Roberson
2012 年 12 月 4 日
mag_func = matlabFunction(mag, w);
wrange = linspace(-100, 100, 1000); %adjust as desired
plot(wrange, mag_func(wrange))
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Fourier Analysis and Filtering についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!