www.gusucode.com > mbcdesign 工具箱 matlab 源码程序 > mbcdesign/@conbase/guiMatchInputs.m
function [con, ok] = guiMatchInputs(con, newFactors) %GUIMATCHINPUTS Match a constraint to new factors. % % [CON, OK] = GUIMATCHINPUTS(CON, NEWFACTORS) % % NEWFACTORS should be a CONINPUTFACTOR. % OK will be true if the user clicks OK on the GUI and FALSE otherwise. % % See also CONBASE, CONINPUTFACTOR, % CONBASE/SETMATCHEDFACTORS, % CONBASE/GETACTIVEFACTORS. % Copyright 2005 The MathWorks, Inc. [ai, ok] = guiMatch( getActiveFactors( con ), newFactors ); if ok, con = setMatchedFactors( con, newFactors, ai ); end %------------------------------------------------------------------------------| % EOF %------------------------------------------------------------------------------|