Filter löschen
Filter löschen

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

12 Ansichten (letzte 30 Tage)
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;

Akzeptierte Antwort

Walter Roberson
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)

Tags

Produkte


Version

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by