Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/matlab/16.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Algorithm 检索局部变量值_Algorithm_Matlab - Fatal编程技术网

Algorithm 检索局部变量值

Algorithm 检索局部变量值,algorithm,matlab,Algorithm,Matlab,我有其他人写的这个函数。如何检索下面“选项”的值?我相信这是一个局部变量 function [ew1, Periodogram] = dest_modified3(x,m) n = length(x); %x2 = dmtrend(x); % detrended data (demeaning is done in univariate_d!) %m = fix(n^0.6); % m is the number of frequencies used in esti

我有其他人写的这个函数。如何检索下面“选项”的值?我相信这是一个局部变量

function [ew1, Periodogram] = dest_modified3(x,m)
n = length(x);
%x2 = dmtrend(x);   % detrended data    (demeaning is done in univariate_d!) 

%m = fix(n^0.6);        % m is the number of frequencies used in estimation.

options = optimset('fminbnd');

%dw = fminbnd('whittle',-1,3,options,x,m);      % LW estimate
[ew1,Periodogram] = fminbnd('ewhittle',-2,4,options,x,m,0); % ELW estimate
%ew2 = fminbnd('ewhittle',-2,4,options,x,m,1);  % FELW estimate
%ew3 = fminbnd('ewhittle',-2,4,options,x2,m,1); % FELW w/ detrending
%[felw1, Periodogram] = felw2st_modified(x,m,3,10);                     

% 2stage FELW 
    %felw2 = felw2st(x2,m,3,10);                        % 2stage      FELW w/ detrending

% fprintf(1,'Number of observations     %7i \n', n);
% fprintf(1,'Number of frequencies used %7i \n\n', m);
% fprintf(1,'Estimate of d: LW estimator                                %7.5f  \n', dw);
% fprintf(1,'Estimate of d: exact LW estimator                          %7.5f  \n', ew1);
% fprintf(1,'Estimate of d: feasible ELW estimator                      %7.5f  \n', ew2);
% fprintf(1,'Estimate of d: feasible ELW estimator with detrending      %7.5f  \n', ew3);
% fprintf(1,'Estimate of d: 2-step feasible ELW estimator               %7.5f  \n', felw1);
% fprintf(1,'Estimate of d: 2-step feasible ELW estimator w/ detrending %7.5f  \n', felw2);

修改第一行:
函数[ew1,周期图,选项]=dest_modified3(x,m)
options=Display:'notify'MaxFunEvals:500 MaxIter:500 TolFun:[]TolX:1.0000e-04 FunValCheck:'off'输出fcn:[]PlotFcns:[]动态构造:[]算法:[]以上是输出。它不起作用。我对matlab或任何编程都是新手。我需要上面“fminbnd”中使用的输入“options”的值。谢谢你希望有什么选择?“它不起作用”是什么意思?你读过吗?