how to use partial derivative in fraction form in latex intepreter

31 Ansichten (letzte 30 Tage)
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} $';
  2 Kommentare
jessupj am 9 Feb. 2021
Bearbeitet: jessupj am 9 Feb. 2021
try '$\partial u/\partial x$' and change 'interpreter' to 'Latex'

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Star Strider
Star Strider am 9 Feb. 2021
Try this:
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.

Weitere Antworten (1)

Sulaymon Eshkabilov
Sulaymon Eshkabilov am 2 Feb. 2023
Bearbeitet: Sulaymon Eshkabilov am 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)

Community Treasure Hunt

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

Start Hunting!

Translated by