Is there an alternate for sym function in matlab 2012b?
Ältere Kommentare anzeigen
I can't find symbolic math toolbox at all in this version. Is there any other function which serves the same purpose or can anyone tell me how to construct your own sym function as the last resort?
Antworten (1)
Walter Roberson
am 24 Mai 2013
2 Stimmen
sym is part of the Symbolic Toolbox, which must be purchased separately for all R2012b licenses.
It is possible that previously you were working with Student Version licenses, which include the Symbolic Toolbox as part of the package. Student Version is not available for R2012b. All Student Version releases in releases named after years have been for the "a" (beginning of year) releases, with the exception of R2008b.
If you do not have "sym" then you are also missing the rest of the Symbolic Toolbox. "sym" is of no value without that toolbox, but in order for us to suggest an appropriate replacement we would need to know what kinds of symbolic operations you need to do.
If you happen to have a full Maple release that dates from roughly 2006 or later, then it is possible to install a linkage between MATLAB and Maple so that "sym" in MATLAB will create Maple objects. The capacities of that MATLAB / Maple interface are a bit different than the MATLAB Symbolic Toolbox; a fair number of operations will respond nearly the same, but the interface is closer to what MuPAD was like before R2011b.
If you are doing integer computations in extended precision then John D'Errico's FEX contribution "vpi" might be usable.
5 Kommentare
Sushant Kumar
am 24 Mai 2013
Bearbeitet: Walter Roberson
am 24 Mai 2013
Walter Roberson
am 24 Mai 2013
To confirm: myfunction1, myfunction2, myfunction3 are all symbolic formula and are passed as parameters to this section of code? If so then please describe the code that creates those symbolic formula: in particular, is there a point at which user input controls the form of the formula ? For example can the user input 'x^2+5*y' and have that be the formula? Or can the user input a value which is used to control the number of terms of a fixed formula that will be used?
Sean de Wolski
am 24 Mai 2013
John's hpf rather than vpi.
Walter Roberson
am 24 Mai 2013
For integers, vpi is the appropriate. For what is being done here in this question, neither vpi nor hpf are suitable.
Sushant Kumar
am 27 Mai 2013
Kategorien
Mehr zu Linear Algebra finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!