Clear Filters
Clear Filters

how to convert symbolic expression to function handle ?

2 views (last 30 days)
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??

Answers (1)

Walter Roberson
Walter Roberson on 27 Jun 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.

Community Treasure Hunt

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

Start Hunting!