www.gusucode.com > mbcexpr 工具箱 matlab 源码程序 > mbcexpr/@cgexprgui/@NamedList/setCurrentExpression.m

    function setCurrentExpression(obj, pExpr)
%SETCURRENTEXPRESSION Set the expression associated with the expression
%
%  SETCURRENTEXPRESSION(OBJ, PEXPR) sets the expression pointer that should
%  be matched against the current selection.

%  Copyright 2000-2004 The MathWorks, Inc. and Ford Global Technologies, Inc.


obj.ExpressionPointers(obj.SelectedIndex) = pExpr;
obj.pDisplay(true);