📄 fftplot.m
字号:
%FFTPLOT(in)
% This function plots the power spectrum on the input vector.
function out = fftplot(in)
a = fft(in);
a(1) = [];
b = length(a)/2;
power = abs(a(1:b)).^2;
nyq = 1/2;
freq = (1:b)/b*nyq;
plot(freq,power);
out = 'Done';
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -