dpssload.m

来自「有关matlab的电子书籍有一定的帮助希望有用」· M 代码 · 共 24 行

M
24
字号
function [E,V] = dpssload(N,NW)
%DPSSLOAD  Load discrete prolate spheroidal sequences from database.
%   [E,V] = DPSSLOAD(N,NW) are the  DPSSs E and their concentrations V, with 
%   length N and time-halfbandwidth product NW, as stored in the DPSS MAT-file 
%   database, 'dpss.mat'.  
%
%   See also DPSS, DPSSSAVE, DPSSDIR, DPSSCLEAR.

%   Author: T. Krauss
%   Copyright (c) 1988-98 by The MathWorks, Inc.
%       $Revision: 1.7 $

index = dpssdir(N,NW);
if isempty(index)
    error('DPSSs of given length N and parameter NW are not in database.')
else
    key = index.wlist.key;
    str = sprintf('load dpss E%g V%g', key, key);
    eval(str)
    str = sprintf('E = E%g; V =  V%g;', key, key);
    eval(str)
end

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?