fftplot.m
来自「This is a collection of m-files I create」· M 代码 · 共 14 行
M
14 行
%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 + =
减小字号Ctrl + -
显示快捷键?