Russian characters in the latex interpreter when signing the axes of the graph
12 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Anton Tayurov
am 15 Jan. 2023
Kommentiert: Anton Tayurov
am 18 Jan. 2023
I need to combine Russian characters and Latex characters in one place. Is there a solution for this? I also can't set the default text size at the beginning of the code.
close all; clc;
set(0,'DefaultAxesFontSize',24,...
'DefaultAxesFontName','isocpeur','DefaultAxesFontAngle','italic',...
'DefaultAxesXGrid', 'on','DefaultAxesYGrid', 'on','DefaultAxesZGrid', 'on',...
'defaultTextInterpreter','latex');
set(groot,'defaultLineLineWidth', 2.0, 'defaultLineMarkerSize', 25)
xlabel('$\lambda$') %xlabel is $x$
ylabel('Уровень $\xsi$')
t = text(0.5, 0.5, '$\frac{1}{2 \cdot \pi} $ длина')
s = t.FontSize;
t.FontSize = 24;
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 15 Jan. 2023
Sorry, that is not possible in MATLAB itself.
It might possibly be possible in text generated through the Report Generator.... maybe... perhaps.
MATLAB's latex interpreter cannot handle characters outside of U+0000 to U+00FF .
The tex interpreter and the 'none' interpreter can handle up to U+FFFF (or some approximation to that.)
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu LaTeX 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!