converting matlab expression into a symbolic expression
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Howard Padmore
il 12 Giu 2023
Commentato: Walter Roberson
il 12 Giu 2023
I am a starter with Matlab Symbolic toolbox. I have a matlab equation which is the output of the toolbox
z=x^2/(2*r) + x^4/(8*r^3) + x^6/(16*r^5) + y^2/(2*R) + y^4/(8*R^3) + y^6/(16*R^5)
I want to convert this into a regular typographical symbolic form. I tried putting this in live editor and just running. This gives me a nice formatted symbolic equation, but the z is in normal matlab form and the rest in symbol form is on the next line.
z =
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1409214/image.png)
Many thanks.
0 Commenti
Risposta accettata
Torsten
il 12 Giu 2023
Spostato: Torsten
il 12 Giu 2023
syms x y z r R
eqn = z == x^2/(2*r) + x^4/(8*r^3) + x^6/(16*r^5) + y^2/(2*R) + y^4/(8*R^3) + y^6/(16*R^5)
3 Commenti
Walter Roberson
il 12 Giu 2023
These days you can also ask for mathml form of a symbolic expression.
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Symbolic Math Toolbox in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!