www.gusucode.com > mbcview 工具箱matlab源码程序 > mbcview/@cgsurfview/@movieplot/reset.m
function reset(obj,str) %RESET Rests the movieplot component. % % obj.reset % % Clears the axes, enables the "Make Movie" button only, % Shows the text 'Click "Make Movie" to begin'. % % Copyright 2000-2010 The MathWorks, Inc. and Ford Global Technologies, Inc. if nargin<2 str = 'No data'; end cla(obj.hAxes); %set(obj.hAxes.title,'string',''); set(obj.hAxes,'XLim',[-1 1],'YLim',[-1 1],'ZLim',[-1 1],'View',[37 37]); text(0,0,0,str,'Parent',obj.hAxes,'FontSize',16,... 'HorizontalAlignment','center','Visible',get(obj.hAxes,'Visible'));