www.gusucode.com > mbc 工具箱 matlab 源码程序 > mbc/@mbcmodel/@model/BeginEdit.m
function obj = BeginEdit(obj) %BEGINEDIT Indicate that a model properties object should begin an editing session % % OBJ = BEGINEDIT(OBJ) % % See also % mbcmodel.model.CommitEdit, % mbcmodel.model.RollbackEdit. % Copyright 2006-2011 The MathWorks, Inc. % Is the object capable of being edited if ~obj.IsEditable error(message('mbc:mbcmodelextensions:model:InvalidState')); end % If this object already being edited - no need to do anything if obj.IsBeingEdited % do nothing else % Indicate that this object is now being edited. obj.IsBeingEdited = true; % make a backup of main object so we can rollback obj.BackUp = obj.Object; end warning(message('mbc:mbcmodel:Obsolete7a5'))