matlab中system prt,急!!求救!!MATLAB关于prt报错!

急呀!!向各位大侠求助!!!崩溃了啊!!终于把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()

---------------------------------------------------

参与评论 您还未登录,请先 登录 后发表或查看评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
©️2022 CSDN 皮肤主题:1024 设计师:我叫白小胖 返回首页
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、C币套餐、付费专栏及课程。

余额充值