資源簡介
對一個產生的離散序列作傅立葉變換,分析其頻率響應特性(給出幅頻與相頻特性曲線)-A discrete sequence generated for the Fourier transform to analyze the frequency response characteristics (frequency and amplitude given phase frequency response curve)
代碼片段和文件信息
close?all
N=input(‘請輸入FFT的變換區間長度N:\n‘);???%??N=16?32?64
n=0:N-1;
x1=2/pi*sin(n*2*pi/N)+2/pi*(sin(3*n*2*pi/N)/3)+2/pi*(sin(5*n*2*pi/N)/5)+2/pi*(sin(7*n*2*pi/N)/7)+2/pi*(sin(9*n*2*pi/N)/9)+2/pi*(sin(11*n*2*pi/N)/11)+2/pi*(sin(13*n*2*pi/N)/13)+2/pi*(sin(15*n*2*pi/N)/15)+2/pi*(sin(17*n*2*pi/N)/17)+2/pi*(sin(19*n*2*pi/N)/19)+2/pi*(sin(21*n*2*pi/N)/21);
subplot(221);%輸出x1圖像
plot(nx1);
- 上一篇:LDPC編譯碼 matlab仿真,BP算法
- 下一篇:shiyan.m
評論
共有 條評論