sym2str
Converts symbolic variables to a Matlab equation string insuring that only array opps are used. Symbolic arrays are converted to linear Cell arrays of strings. This function is most often used to prepare symbolic answers for use with the "eval()" command. Also, converts Maple "atan" function to Matlab "atan2". Converts
Maple "array([[a,b],[c,d]])" notation to matlab "[a,b;c,d]" notation.
Note: eval() of a matrix only works if all the input variables have single values. i.e. vectors and arrays won't work.
Note2: eval() does not work on Cell arrays directly. Use "Cell_array{index}" to keep eval() happy
Citar como
Martin Lawson (2024). sym2str (https://www.mathworks.com/matlabcentral/fileexchange/19217-sym2str), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Compatibilidad con las plataformas
Windows macOS LinuxCategorías
Etiquetas
Agradecimientos
Inspiración para: campodir
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.