www.gusucode.com > mbcdesign 工具箱 matlab 源码程序 > mbcdesign/@conbase/CreateBoundary.m
function B = CreateBoundary(con,Type) %CREATEBOUNDARY create a boundary model based from inputs % % B = CreateBoundary(con); % B = CreateBoundary(con,Type); % Copyright 2009 The MathWorks, Inc. if nargin>1 [OptionObjects, OptionNames] = pGenerateObjectList(con,BoundaryClasses(con)); if ~any(strcmpi(Type,OptionNames)) if length(OptionNames)==1 error(message('mbc:boundarymodel:InvalidType', OptionNames{ 1 })) else error(message('mbc:boundarymodel:InvalidType1', mbcListString( OptionNames, ' ', 'or' ))) end else con = OptionObjects{ strcmpi(Type,OptionNames) }; end end B = boundarymodel(con);