how to convert symbolic expression to function handle ?
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I am using MATLAB R2008a . and I want to convert my symbolic expression to function handle to perform optimization upon it but I can not . I know that modern versions of MATLAB can use command matlabFunction to do that but my version does not support that. I want to ask if MATLAB R2009b supports that command . or what should I do with my MATLAB version to do this task??
0 commentaires
Réponses (1)
Walter Roberson
le 27 Juin 2012
In MATLAB R2008a, you must be using the Maple symbolic engine. Do you have just the Symbolic Toolbox, or the Extended Symbolic Toolbox as well? There are Maple methods for generating code, but it would take me some checking to figure out whether they were accessible from the regular toolbox.
R2009b used the MuPAD symbolic toolbox, so matlabFunction should (I think) be available in it.
0 commentaires
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!