www.gusucode.com > mbcexpr 工具箱 matlab 源码程序 > mbcexpr/@cgsymvalue/getvariable.m
function pVar = getvariable(obj) %GETVARIABLE Return pointer to symvalue's input variable % % PVAR = GETVARIABLE(OBJ) returns the pointer to the formula's input that % is considered to be the "variable". % Copyright 2000-2004 The MathWorks, Inc. and Ford Global Technologies, Inc. if ~isempty(obj.EquationPointers) pVar = obj.EquationPointers(obj.EquationVariableIndex); else pVar = xregpointer; end