Russian characters in the latex interpreter when signing the axes of the graph
22 views (last 30 days)
Show older comments
Anton Tayurov
on 15 Jan 2023
Commented: Anton Tayurov
on 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 Comments
Accepted Answer
Walter Roberson
on 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.)
More Answers (0)
See Also
Categories
Find more on Annotations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!