In matlab, How can I display both Chinese characters and LaTeX symbols in a label?

50 Views Asked by At

How to display both Chinese characters and LaTeX symbols in a label?

if I use latex Interpreter, there are some error:

close
clear

x = 0:0.01:2*pi;
y = sin(x);

figure;
plot(x, y);

xlabel( '$\text{中文}m_k$', 'Interpreter', 'latex'); 

plot with mixed xlabel

If I use the TeX interpreter, the symbols do not display in italics, and the font is not the default LaTeX font:

close
clear

x = 0:0.01:2*pi;
y = sin(x);

figure;
plot(x, y);

xlabel( '{中文}m_k', 'Interpreter', 'tex'); 

enter image description here

0

There are 0 best solutions below