how to use partial derivative in fraction form in latex intepreter

18 views (last 30 days)
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} $';

Accepted Answer

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.

More Answers (1)

Sulaymon Eshkabilov
Sulaymon Eshkabilov on 2 Feb 2023
Edited: Sulaymon Eshkabilov on 2 Feb 2023
Here is one simple example on how to use latex to display partial derivatives, e.g:
fplot(@(t)exp(sin(2*t)), [-pi, pi])
title('Plot of: $\frac{\partial_{F}}{\partial_{x}}+\frac{\partial_{F}}{\partial_{y}}$', ...
'Interpreter','latex', 'fontsize', 15)

Categories

Find more on Labels and Annotations in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!