how to use partial derivative in fraction form in latex intepreter

17 views (last 30 days)
Turbulence Analysis
Turbulence Analysis on 9 Feb 2021
Answered: Star Strider on 9 Feb 2021
Hi,
I intend to use ∂u/ ∂x in colorbar, could someone help me on how to represent this is in latex interpreter ???
c.Title.String='$\partial_{u} $'/'$\partial_{x} $';

Answers (1)

Star Strider
Star Strider on 9 Feb 2021
Try this:
figure
text(0.5, 0.5, '$ \frac{\partial_{u}}{\partial_{x}} $', 'Interpreter','latex', 'FontSize',25)
For more information, see The Not So Short Guide to Latex 2e, page 49 ff.

Community Treasure Hunt

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

Start Hunting!