[問題] 富立葉轉換之問題
請問各位大大一下
小弟目前用MATLAB在作FFT之問題
分別是把SIN和SAUARE和三角波作FFT
請問做完之後的圖形是怎樣阿??
因為我做出來的很怪請各位幫忙一下吧
我的程式碼
clc;
clear all;
x=linspace(-2*pi, 2*pi;);
y=square(x);
subplot(3,1,1);
plot(x,y); axis tight
Y=fft(y);
Y=fftshift(Y);
subplot(3,1,2);
plot(x,Y); axis tight
Z=angle(Y);
subplot(3,1,3);
plot(x.Z); axis tight
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.128.86.58
討論串 (同標題文章)
完整討論串 (本文為第 1 之 2 篇):