www.gusucode.com > mbcdesign 工具箱 matlab 源码程序 > mbcdesign/@conconvexhull/conconvexhull.m
function con = conconvexhull(cif) %CONCONVEXHULL Convex-hull constraint % % CON = CONCONVEXHULL(CIF) % % See also CONBASE, CONINPUTFACTOR. % Copyright 2005 The MathWorks, Inc. if ~nargin cif = coninputfactor( 2 ); end if isstruct( cif ) parent = cif.conbase; con = mv_rmfield( cif, 'conbase' ); else parent = conbase( cif ); con = struct( ... 'A', [], ... 'b', [], ... 'ScaleFactor', [], ... 'CenterPoint', [], ... % only used by export to simulink 'Version', 1 ); end con = orderfields( con ); con = class( con, 'conconvexhull', parent ); con = pUpdateScaleFactor( con );