www.gusucode.com > mbcdesign 工具箱 matlab 源码程序 > mbcdesign/@designdev/append.m
function obj = append(obj, newobj) % DESIGNDEV/APPEND appends a new designdev object to the bottom of a designdev list % Copyright 2000-2007 The MathWorks, Inc. and Ford Global Technologies, Inc. if ~(isa(newobj, 'designdev') & isa(obj, 'designdev')) error(message('mbc:designdev:InvalidArgument1')); end % If we aren't at the bottom of the list simply append the new object % to the next in the list if ~isempty(obj.next) obj.next = append(obj.next, newobj); else obj.next = newobj; end