Define alternative latex-output for symbolic

3 views (last 30 days)
I want to change the output that comes from the latex-command
syms g(f) dx(t) d
eq = dx(t) == g(t^2+t) + d; % example
This example produces:
And i want it to say:
Basicly, want tell matlab that the symbolic function "dx(t)" should be changed into "\dot{x}(t)" when using the latex command
I know that i can make a work-around and use strrep (or similar) to change '\mathrm{dx}' into '\dot{x}', but i would like to know if there is a more direct way

Accepted Answer

Nikhil Sonavane
Nikhil Sonavane on 18 May 2020
There isn't a direct way to get the desired output. The only way is to make it work using the workaround you mentioned.

More Answers (0)




Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!