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()

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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值