how to use partial derivative in fraction form in latex intepreter

34 vues (au cours des 30 derniers jours)
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 commentaires
jessupj
jessupj le 9 Fév 2021
Modifié(e) : jessupj le 9 Fév 2021
try '$\partial u/\partial x$' and change 'interpreter' to 'Latex'
Turbulence Analysis
Turbulence Analysis le 9 Fév 2021
Thanks.. It really worked ..

Connectez-vous pour commenter.

Réponse acceptée

Star Strider
Star Strider le 9 Fév 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.

Plus de réponses (1)

Sulaymon Eshkabilov
Sulaymon Eshkabilov le 2 Fév 2023
Modifié(e) : Sulaymon Eshkabilov le 2 Fév 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