samfft.m

来自「Design for Butterworth Filter」· M 代码 · 共 26 行

M
26
字号
clc;
lx=input('Enter the Length ');
x=input('Enter the x values ');
lix=0;
n1=lix:1:lx-1;
disp(x);
subplot(3,1,1);
stem(n1,x);
xlabel('Time');
ylabel('Amplitude');
title('Xlabel');
a=fft(x);
disp(a);
b=abs(a);
disp(b);
subplot(3,1,2);
stem(n1,b);
xlabel('Freqency');
ylabel('Amplitude');
c=angle(a);
disp(c);
subplot(3,1,3);
stem(n1,c);
xlabel('Time');
ylabel('Angle');
title('Phase Specturm');

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?