How does the Matlab latex interpreter handle unicode?

I am wondering how the MATLABs latex interpreter for plot text deals with Unicode characters? This is strangely inconsistent. Which, you know, invalidates the entire Unicode endpoint.

TOY CODE

%*** Setup some text for a plot title
Title_Txt{1} = [char(8734) ,' SNR~~~' , char(10) , '(-)'];
Title_Txt{2} = ['50 SNR~~~' , char(10) , '(-)'];


%*** Plots!
x= 1:1:10
y= rand(size(x))

figure(1)
subplot(211)
plot(x,y)
title(Title_Txt{1} , 'interpreter' , 'latex')

subplot(212)
plot(x,y)
title(Title_Txt{2} , 'interpreter' , 'latex')

Game plot

The toy code demonstrates that the latex interpreter processes char (10) --- a new line. But it is interrupted by char (8734) --- the symbol of infinity.

Obviously, I can get around this by giving a latex symbol that Matlab knows (another source of frustration, but this is for another discussion), but I'm curious about

  • What does MATLAB do under the hood here?
  • is there a fix for getting unicode in latex?
+4
source share
1

, () , Latex Matlab , Latex, Latex Unicode. ( Latex . https://tex.stackexchange.com/questions/34604/entering-unicode-characters-in-latex. , Matlab.)

, Latex Unicode. , Latex - 1985 , - 2e, 1994 . Unicode 90- .

( , .)

+2

Source: https://habr.com/ru/post/1670419/


All Articles