📄 svfft.m
字号:
function [errstr,P,f] = svfft(x,Fs,valueArray)
%SVFFT spectview Wrapper for FFT.
% [errstr,P,f] = svfft(x,Fs,valueArray) computes the power spectrum P
% at frequencies f using the parameters passed in via valueArray:
%
% valueArray entry Description
% ------------ ----------
% 1 Nfft
% Copyright (c) 1988-98 by The MathWorks, Inc.
% $Revision: 1.2 $ $Date: 1997/11/26 20:14:47 $
errstr = '';
P = [];
f = [];
err = 0;
nfft = valueArray{1};
evalStr = 'P = (abs(fft(x,nfft)).^2)/nfft; f=(0:nfft-1)''*Fs/nfft;';
eval(evalStr,'err = 1;')
if err
errstr = {'Sorry, couldn''t evaluate fft; error message:'
lasterr };
return
end
[P,f] = sbswitch('svextrap',P,f,nfft);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -