How do i display a kannada unicode letters into its ASCII value using matlab code
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Swapna Havalgi
el 2 de Nov. de 2015
Editada: Walter Roberson
el 26 de Mzo. de 2018
I have a kannada unicode letters i want it to convert it in ASCII value and display.How can i do that can anyone suggest any idea or a command to do that?
1 comentario
Stephen23
el 5 de Nov. de 2015
ASCII only defines characters from 0 to 127, consituting some control characters, punctuation, Arabic digits and the Latin letters.
Respuesta aceptada
Mike Garrity
el 2 de Nov. de 2015
Why do you want to convert to ASCII?
MATLAB's native character representation is Unicode, not ASCII. You can display the characters using the Unicode values directly. However, you do need to choose a font which contains glyphs for Kannada. If your font doesn't, then you'll get those boxes which are known as "tofu".
c = char(3218:3240);
text(.5,.5,c,'HorizontalAlignment','center','FontName','Arial Unicode MS','FontSize',18)

10 comentarios
Neethu K
el 22 de Mzo. de 2018
where should I put this command when I am using a complete code?? I didn't get the output correctly, still it showing squares.
Walter Roberson
el 26 de Mzo. de 2018
Editada: Walter Roberson
el 26 de Mzo. de 2018
You have a font problem. Commands cannot fix that.
Más respuestas (1)
Walter Roberson
el 2 de Nov. de 2015
kannada unicode letters are entirely beyond the range of ASCII values. ASCII formally defines only the character positions numbered 0 to 126 (or 127, depending which edition.)
7 comentarios
Walter Roberson
el 6 de Nov. de 2015
You will need to upgrade to R2014b or later to display the characters in plots.
Mike Garrity
el 6 de Nov. de 2015
Yes, good point.
Early versions of MATLAB did use ASCII. We've been transitioning the system over to using Unicode. That transition was incremental. As Walter says, almost all of the system was switched over by 14b, but in 9b there were lots of areas which were still using ASCII.
Ver también
Categorías
Más información sobre Simulink Real-Time en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


