www.gusucode.com > mbcview 工具箱matlab源码程序 > mbcview/@cgtools/@breakpointeditor/pClearAxes.m
function pClearAxes(obj) % breakpointeditor/pClearAxes Private method. % obj.pClearAxes % Deletes all points and lines from both sets of axes % Copyright 2000-2004 The MathWorks, Inc. and Ford Global Technologies, Inc. % MW: why does cla() cause callbacks to fail later?! try for i=1:length(obj.BP) obj.pClearPoint(i); end end d = obj.userdata; delete(d.ModelLines); d.ModelLines = []; d.Lines = []; d.MissingLines = {}; d.MissingPoints = {}; d.ModelLines = []; d.Points=[]; d.PointJoin = {}; obj.userdata = d;