急呀!!向各位大侠求助!!!崩溃了啊!!终于把spatial toolbox放到matlab里了。可是发现,还是会不停的报错。
本人新手!请教各位高手,这个问题应该怎么解决??????
报错如下:
>> demo
??? Error using ==> prt
results structure not known by prt function
Error in ==> demo at 57
prt(res)
对应的m文件里的代码:
%Joint LM test
res=lm_f_joint(y,x,W,W,N);
prt(res) -------------------------------------------------------第57行
% LM test for spatially autocorrelated errors
res1=lm_f_err(y,x,W,N);
prt(res1)
% LM test for a SAR specification
res2=lm_f_sar(y,x,W,N);
prt(res2)
关于prt:
>> help prt
PURPOSE: Prints results structures returned by most functions
by calling the appropriate printing function
---------------------------------------------------
USAGE: prt(results,vnames,fid)
Where: results = a results structure returned an econometric function
vnames = an optional vector of variable names
fid = file-id for printing results to a file
(defaults to the MATLAB command window)
---------------------------------------------------
e.g. vnames = ['y ',
'x1 ', NOTE: fixed width
'x2 ', like all MATLAB
'cterm']; strings
e.g. fid = fopen('ols.out','wr');
--------------------------------------------------
NOTES: you may use prt(results,[],fid) to print
output to a file with no vnames
this is simply a wrapper function that calls another function
--------------------------------------------------
RETURNS:
nothing, just prints the regression results
--------------------------------------------------
SEE ALSO: plt()
---------------------------------------------------