gusucode.com > 信号处理工具箱 - signal源码程序 > signal\signal\siggui\private\svmcov.m

    function [errstr,P,f] = svmcov(x,Fs,valueArray)
%SVMCOV spectview Wrapper for Modified Covariance method.
%  [errstr,P,f] = SVMCOV(x,Fs,valueArray) computes the power spectrum P
%  at frequencies f using the parameters passed in via valueArray:
%
%   valueArray entry     Description
%    ------------         ----------
%          1                Order
%          2                Nfft

%   Copyright (c) 1988-98 by The MathWorks, Inc.
% $Revision: 1.1 $ $Date: 1998/05/22 20:06:57 $

errstr = '';
P = [];
f = [];

order = valueArray{1};
nfft  = valueArray{2};
evalStr = '[P,f] = pmcov(x,order,nfft,Fs);';

err = 0;
eval(evalStr,'err = 1;')
if err,
    errstr = {'Sorry, couldn''t evaluate pmcov; error message:'
               lasterr };
    return
end

[P,f] = svextrap(P,f,nfft);