⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fftplot.m

📁 This is a collection of m-files I created to complete a research project into the DC components of v
💻 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 + -