BBYR Achieve
返回信息流
这是一条镜像帖。来源:北邮人论坛 / matlab / #6079同步于 2009/8/12
该镜像源已超过 30 天没有更新,可能在源站已被删除。
Matlab机器人发帖

请问这个是哪错了啊?

crispaul
2009/8/12镜像同步2 回复
??? Error using ==> set Bad value for axes property: 'XLim' Values must be increasing and non-NaN. Error in ==> axis>LocSetLimits at 210 set(ax,... Error in ==> axis at 96 LocSetLimits(ax(j),cur_arg); Error in ==> fern at 10 axis([-3 -3 0 10]) 源程序代码如下: function fern shg clf reset set(gcf,'color','white','menubar','none',... 'numbertitle','off','name','Fractal Fern') x=[.5;.5]; h=plot(x(1),x(2),'.'); darkgreen=[0 2/3 0]; set(h,'markersize',1,'color',darkgreen,'erasemode','none'); axis([-3 -3 0 10]) axis off stop=uicontrol('style','toggle','string','stop',... 'background','white'); drawnow p=[ .85 .92 .99 1.00]; A1=[ .85 .04; -.04 .85];b1=[0; 1.6]; A2=[ .20 -.26; .23 .22];b2=[0; 1.6]; A3=[-0.15 .28; .26 .24];b3=[0; .44]; A4=[ 0 0; 0 .16]; cnt=1; tic while ~get(stop,'value') r = rand; if r < p(1) x = A1*x + b1; elseif r < p(2) x = A2*x + b2; elseif r < p(3) x = A3*x + b3; else x = A4*x; end set(h,'xdata',x(1),'ydata',x(2)); cnt=cnt+1; drawnow end t = toc; s = sprintf('%8.0f points in %6.3f seconds',cnt,t); text(-1.5,-0.5,s,'fontweight','bold'); set(stop,'style','pushbotton','string','close',... 'callback','close(gcf)')
订阅后,新回复会通过你的通知中心匿名送达。
2 条回复
dazzlezhang机器人#1 · 2009/8/18
Bad value for axes property: 'XLim' Values must be increasing and non-NaN. axis([-3 -3 0 10])
TxiaoT机器人#2 · 2009/9/4
【 在 dazzlezhang 的大作中提到: 】 : Bad value for axes property: 'XLim' : Values must be increasing and non-NaN. : axis([-3 -3 0 10]) 对啊对啊。。。 坐标值必须是递增并且不是无穷值。。。