为什么图形打印命令print使用提示:Handle input argument contains non-handle va
一个程序如下,数据如附件所示,具体程序如下:% fordxy3.dat
load fordxy3.dat;
ii= fordxy3(:,1);
jj= fordxy3(:,2);
ss= fordxy3(:,3);
clear fordxy3;
W= sparse(ii,jj,ss,217,217);
clear ii;
clear jj;
clear ss;
%y3.dat
load y3.dat;
y = y3;
clear y3;
% xy3.dat
load xy3.dat;
x= xy3;
clear xy3 ;
vnames = strvcat('k','e4','e13','d','d97','AR1','AR2');
t0 = clock;
res = sar(y,x,W);
etime(clock,t0);
% out the figure;
print(res,vnames);
运行时提示:
??? Error using ==> print
Error using ==> D:\matlab6.1\toolbox\matlab\graphics\private\inputcheck (LocalCheckHandles)
Handle input argument contains non-handle value(s).
其中,运行时变量res,vnames的值如下
%%%%%%%%%
res =
iter: 15
beta: [7x1 double]
rho: -0.0160
sige: 1.7067e-004
yhat: [217x1 double]
resid: [217x1 double]
lik: 708.4788
tstat: [8x1 double]
bstd: [7x1 double]
pstd: 0.0680
rsqr: 0.7670
meth: 'sar'
y: [217x1 double]
nobs: 217
nvar: 7
rmax: 1
rmin: -1
lflag: 1
order: 50
miter: 30
rbar: 0.7604
time: 3.9060
time1: 2.2660
time2: 0
time3: 0.2660
time4: 0.4680
lndet: [2001x2 double]
%%%%%
vnames =
k
e4
e13
d
d97
AR1
AR2
跟踪了下知道这块出问题了,不能执行下去,
%%%%
if ~all( ishandle(v) )
error( 'Handle input argument contains non-handle value(s).' )
else
%%%%%%
但不知道具体原因是什么,不知道怎么改才能正确执行?
烦请各位给点解释,哪个地方出问题了?
[此贴子已经被作者于2007-9-19 18:08:51编辑过]