graph - matlab shape object if function -
i want create object move in matlab. code of next nature
global stop stop = 0; frame=1:1:length(t) if stop ~= 1 axes(handles.aaxes) cla hold on if y(frame)<=0 rectangle('position',[3,1,3,(0.000001)],'facecolor','b'); else rectangle('position',[3,1,3,((y(frame)+0.00000001))],'facecolor','b'); end hold off axes(handles.graph) cla hold on plot(t,y) plot(t(frame),y(frame),'*k') end % ff(f)=getframe; % f=f+1; end
this makes rectangle move upwards continuously until settles height (position y) graphical user interface. want rectangle move downwards instead of upwards (and hence settle position y). possible somehow?
matlab graph shape polygons
No comments:
Post a Comment