Russian characters in the latex interpreter when signing the axes of the graph

3 次查看(过去 30 天)
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;

采纳的回答

Walter Roberson
Walter Roberson 2023-1-15
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.)

更多回答(0 个)

标签

产品


版本

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by