全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 MATLAB等数学软件专版
2413 1
2010-09-16
急呀!!向各位大侠求助!!!崩溃了啊!!终于把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()
---------------------------------------------------
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2010-9-16 18:56:26
不能沉下去呀!!!!呼唤高手呀~~~~~
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群