The results of symbolic computations obtained in MuPAD® are often used in numeric MATLAB computations that exclusively use standard double-precision arithmetic. MuPAD provides functions for converting MuPAD expressions to MATLAB, C, Fortran, MathML, and TeX code. You can also convert MuPAD expressions to equations based on the Simscape language.
With these functions, you can convert the results of your exact symbolic computations, done analytically in the MuPAD Notebook app, into functions based on numeric computation, ready to be used in other parts of your program. Using the generated MATLAB and Simscape code does not require a license for Symbolic Math Toolbox™.
|generate::C||Generate C formatted string|
|generate::fortran||Generate Fortran formatted string|
|generate::MathML||Generate MathML from expressions|
|generate::MATLAB||Generate MATLAB formatted string|
|generate::optimize||Generate optimized code|
|generate::Simscape||Generate Simscape equation|
|generate::TeX||Generate formatted string from expressions|