看板Electronics
标 题Re: [问题] 富立叶转换之问题
发信站中正筑梦园 (Thu Jul 20 15:53:00 2006)
转信站ptt!ctu-reader!Spring!ctu-peer!news.nctu!news.csie.ncyu!news.cna.ccu!c
你fft转出来的是虚数 matlab会用极座标去画
剩下的自己想罗....加油
※ 引述《[email protected] (嘎嘎嘎)》之铭言:
> 请问各位大大一下
> 小弟目前用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 ◤