我在一程序成功运行后,由于运用了lasterr函数,有如下错误提示(命令错口黑色字体显示):
ans=
Cell contents reference from a non-cell array object
怎么理解呢?想不通!
程序中cell的整个运用过程如下:
...
...
B{1,n}=[x',y'];
...
...
N=myoverlapping_determination(B,x,y,n,x0,y0)
...
...
function N=myoverlapping_determination(B,x,y,n,x0,y0)
...
for i=1:n-1
...
XYi=B{1,i};
xi=XYi(:,1);yi=XYi(:,2);
....
....
end
除此之外,别无应用!