?? samfft.m
字號:
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 + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -