How do I change the order symbolic variables are displayed in the output in a Matlab Live Script?
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi,
As the question says, I would like to change the order Matlab displays symbolic variables in a live script. Currently it seems to alphabetise them but I would prefer to be able to set the order, or at least have them stay in the order I input them.
Also is there any way I can specify subscripts in the output? For example I would like to type Kact in the code and have it displayed as K_{act}.
I know these sound like minor things but I export to latex and it's taking me hours to edit.
Thanks Carla
1 Kommentar
Emiliano Gabriel Giupponi
am 31 Jan. 2020
Hi,
I have the same problem as Carla.
How could it be solved?
Thanks,
Emiliano.
Antworten (1)
madhan ravi
am 5 Jul. 2018
Bearbeitet: madhan ravi
am 5 Jul. 2018
Hi! There’s in built latex option in matlab . As soon as you define every variable as syms. For example
syms x y
y=x.^2-sqrt(2)
After you run the code You can type latex(y) in the command window and you will get the specified latex format.You copy the form from matlab and use it in pages via inserting equations. This is how I do often it’s simpler and you don’t have to type latex codes .
1 Kommentar
Siehe auch
Kategorien
Mehr zu Symbolic Math Toolbox finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!