Re: [問題] 富立葉轉換之問題

看板Electronics作者時間19年前 (2006/07/20 16:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/2 (看更多)
你fft轉出來的是虛數 matlab會用極座標去畫 剩下的自己想囉....加油 ※ 引述《js127.bbs@ptt.cc (嘎嘎嘎)》之銘言: > 請問各位大大一下 > 小弟目前用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 -- A: 俗辣有名字嗎? B: 卒仔ㄚ,笨~ -- ˙ ˙ ◢▇◣ ◢▇◣ ▇ ▇ █▇◣ █▇◣ █▇◣ ◢▇◣ █▇▉ ˙ █ █ █ █ █ ▉ █ ▉ █▆ █▆▉ ▉▉▉ ˙ ◥█◤ ◥█◤ ◥█◤ ██◤ █◥▆ █▆◤ █ ▉ ▉▉▉˙ CDBBS 中正築夢園BBS站 歡迎蒞臨參觀 cd.twbbs.org (140.123.20.230) http://cd.twbbs.org Author: supersula ★ From: 59.117.142.171
文章代碼(AID): #14lp-200 (Electronics)
文章代碼(AID): #14lp-200 (Electronics)