www.gusucode.com > mbcdesign 工具箱 matlab 源码程序 > mbcdesign/@designdev/private/Cell2DesignDev.m
function obj = Cell2DesignDev(arrayobj) %CELL2DESIGNDEV % Copyright 2000-2007 The MathWorks, Inc. and Ford Global Technologies, Inc. % Are we ar the end of the array if ~isempty(arrayobj) % Ensure the object is a DesignDev object if ~isa(arrayobj{end},'designdev') error(message('mbc:designdev:InvalidArgument7')); end % Create this object and it's next property obj = arrayobj{end}; obj.next = Cell2DesignDev(arrayobj(1:end-1)); else obj = []; end