diff --git a/matlab/ols/parse_ols_style_equation.m b/matlab/ols/parse_ols_style_equation.m index 93516bce7..534be551b 100644 --- a/matlab/ols/parse_ols_style_equation.m +++ b/matlab/ols/parse_ols_style_equation.m @@ -324,19 +324,15 @@ else end end -function tf = isOlsParam(node) -if strcmp(node.node_type, 'VariableNode') && strcmp(node.type, 'parameter') - tf = true; -else - tf = false; -end -end - function tf = isOlsParamExpr(node, line) if strcmp(node.node_type, 'NumConstNode') tf = true; elseif strcmp(node.node_type, 'VariableNode') - tf = isOlsParam(node); + if strcmp(node.type, 'parameter') + tf = true; + else + tf = false; + end elseif strcmp(node.node_type, 'UnaryOpNode') tf = false; elseif strcmp(node.node_type, 'BinaryOpNode')