Undefined function or variable 'sym' error in MATLAB 2015b (GPTIPS)

8 次查看(过去 30 天)
Hello
Dear all experts
I am using a Toolbox written in MATLAB called GPTIPS (Genetic Programming Toolbox). I get an error of " Undefined function or variable 'sym' ". Since this toolbox is developed in 2014 or 2015 some of the features are not working with latest version of MATLAB (2016 and later on), so I installed the version 2015b which the toolbox feature is working. However, I get an error for 'sym' that is necessary for some calculations. I replaced 'sym' with 'syms' and I get another error of "Error using syms:Too many output arguments.". I also know that 'str2sym' will not work either, since it is provided for MATLAB version of 2017 and later.
Can anyone help me to get around with this sym error?
I should also say that I have the Symbolic Math Toolbox (version 9.3) installed.
Regards,

回答(1 个)

Walter Roberson
Walter Roberson 2020-8-13
编辑:Walter Roberson 2020-8-13
The Symbolic Mathematics Toolbox for R2015b was release 6.3.
It did have a function named sym, and syms was a slightly different function that was more a command.
Try
which -all sym
if it does not find anything then the toolbox is not installed properly. If it finds something but you still cannot invoke sym then you might possibly have a license issue.

类别

Help CenterFile Exchange 中查找有关 Assumptions 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by