How to get Greek letters in text in an IMAGE using Inserttext?
Mostrar comentarios más antiguos
Hi I want to use text with Greek letter in an image (use text as part of the image) using "Inserttext" as suggested by Mathworks. But I cannot get Greek letters there, since Interpreter (latex) is not one of this function's properties. What can I do? This is the code I use (I have to use sprintf):
imgOut = insertText(imgOut, [10 100], sprintf(['a=' num2str(i,'%0.4f \alpha') ],i))
Note: I tried \alpha or \\alpha but it did not work either. Thank you.
Steven
Respuesta aceptada
Más respuestas (1)
Greg Dionne
el 13 de Jun. de 2016
0 votos
Not sure what version of MATLAB you have, but you can try unicode.
Does char(945) work for you?
sprintf('%s',char(945))
3 comentarios
Steven
el 14 de Jun. de 2016
Walter Roberson
el 14 de Jun. de 2016
The support for inserting unicode was not until at least R2014b.
Steven
el 14 de Jun. de 2016
Categorías
Más información sobre Labels and Annotations en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!