Undefined function or variable 'matlabFunction'.
Mostra commenti meno recenti
Dear all,
I am trying to use 'matlabFunction' feature to convert a symbolic expression into the function. I used an example, given in a help file:
syms x y
r = sqrt(x^2 + y^2);
ht = matlabFunction(sin(r)/r, cos(r)/r)
However, what I always get, is a error message: Undefined function or variable 'matlabFunction'.
I am sure, Symbolic Math Toolbox is installed, cause in the uninstall menu all of the toolboxed as checked as available.
Any suggestions how to make it working?
Thank you in advance!
Risposte (2)
Star Strider
il 3 Apr 2017
0 voti
If you have the Symbolic Math Toolbox from R2008a or later, you will have matlabFunction.
5 Commenti
Svyatoslav Kharitonov
il 3 Apr 2017
Star Strider
il 3 Apr 2017
See if running these lines from your Command Window (or a script) solves the problem:
restoredefaultpath
rehash toolboxcache
Svyatoslav Kharitonov
il 4 Apr 2017
Modificato: Svyatoslav Kharitonov
il 4 Apr 2017
Star Strider
il 4 Apr 2017
See if rebooting MATLAB solves that problem.
Svyatoslav Kharitonov
il 4 Apr 2017
Walter Roberson
il 4 Apr 2017
0 voti
A couple of people have reported this in the past for R2016a. The solution appears to be to reinstall the Symbolic Toolbox
Categorie
Scopri di più su Code Performance in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!