How can i display cyrillic characters under tilda on plot without using latex etc.?

So the first task i got was to display english latin characters on plot under a tilda sign without using any additional programs such as latex. I found one solution:
figure;
title('$$\tilde{S(t)}$$', 'Interpreter', 'LaTeX');
As you can see in the first picture, it worked. It was accepted and next task i got was the same but using only russian cyrillic characters. The same method now wasn't working anymore. As you can see on the secont picture, my version of matlab has no problem using cyrillic characters by itself:
title('Спектр амплитуды S(t)');
legend('Результат ДПФ', 'Аналитический');
So now the question is: how can i place a cyrillic russian character under this tilda sign without using latex etc. (preferably)? If you know only methods using these programs I wouldn't mind at all ;)

 Respuesta aceptada

latex cannot currently be used with character positions past 255.
however as long as you are not using latex you can use unicode including U+0303 which is char(771). You can use unicode with tex just not latex.

3 comentarios

Oh man, thanks! But i don't quite get it how to combine it in code ;( Can you guide please?
i never thught it was that easy...
man, thank you so much! :)
you truly are an MVP!

Iniciar sesión para comentar.

Más respuestas (0)

Productos

Versión

R2017b

Preguntada:

el 27 de Dic. de 2018

Editada:

el 27 de Dic. de 2018

Community Treasure Hunt

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

Start Hunting!

Translated by