how to use partial derivative in fraction form in latex intepreter

33 visualizaciones (últimos 30 días)
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} $';
  2 comentarios
jessupj
jessupj el 9 de Feb. de 2021
Editada: jessupj el 9 de Feb. de 2021
try '$\partial u/\partial x$' and change 'interpreter' to 'Latex'

Iniciar sesión para comentar.

Respuesta aceptada

Star Strider
Star Strider el 9 de Feb. de 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.

Más respuestas (1)

Sulaymon Eshkabilov
Sulaymon Eshkabilov el 2 de Feb. de 2023
Editada: Sulaymon Eshkabilov el 2 de Feb. de 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