www.gusucode.com > mbcview 工具箱matlab源码程序 > mbcview/@cgsurfview/@app/setOperatingPoints.m
function setOperatingPoints(obj) %SETOPERATINGPOINTS % % setOperatingPoints(obj) % Copyright 2008-2013 The MathWorks, Inc. and Ford Global Technologies, Inc. sel = obj.hNodeSel.selection; nodeptr = obj.hNodeSel.nodes(sel); nodeptr = nodeptr(1); pMod = nodeptr.getdata; pInputs = pMod.getinputs; if pMod.isSwitchExpr && isequal(pInputs,pMod.getinports) % only switch models with variable inputs OpPoints = pMod.getSwitchPoints; Index = pMod.guiOperatingPoints(obj.fig); m = pMod.get('model'); [LB,UB]=modelranges(m); if Index obj.hInputList.setOperatingPoints(OpPoints(Index,:),LB(:,Index),UB(:,Index),pInputs); obj.redraw; end end