latex in text doesn't work
20 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
DAVIDE MODESTO
am 22 Jan. 2023
Beantwortet: Matt J
am 22 Jan. 2023
Hi,
I've tried the following:
text(1, 1.5,sprintf('$\tilde{y_x}$= %.3f',5), ...
'Interpreter', 'LaTeX','fontsize', 30);
and the result is:
If I remove the tilde:
text(1, 1.5,sprintf('$y_x$= %.3f',5), ...
'Interpreter', 'LaTeX','fontsize', 30);
the result is:
I really appreciate any kind of help.
0 Kommentare
Akzeptierte Antwort
Star Strider
am 22 Jan. 2023
text(1, 1.5,sprintf('$\\tilde{y_x}$= %.3f',5), ...
'Interpreter', 'LaTeX','fontsize', 30);
axis([0 2 0 2])
.
0 Kommentare
Weitere Antworten (1)
Matt J
am 22 Jan. 2023
gca;
s=sprintf('$\\tilde{y}_x$ = %.3f',5)
text(0.5, 0.5,s, ...
'Interpreter', 'LaTeX','fontsize', 30);
0 Kommentare
Siehe auch
Kategorien
Mehr zu Annotations finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!