spec.m
来自「工程计算MATLAB code to calculate the reortho」· M 代码 · 共 18 行
M
18 行
function [freq, a] = spec(X, N) %%X = data of length N%%gives frequencies and corresponding spectral estimate%%(modulus squared of fft of the data); frequency from %%[0, 0.5]freq=(0:(N-1))./(2*N);freq=2*freq(1:(round(N/2)));y=fft(X);a=abs(y);a=a.^2;a=a(1:(round(N/2)));
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?