Put text onto a canvas
4 views (last 30 days)
Show older comments
Hey, I'm very new to matlab, so please bear with me. I'm simply trying to add text to a canvas. I do not have that image toolbox things or whatever, but i'd like to simply display some text. How would I do this. I am only using a canvas object so text(x,y,'string') does now work. Would like to use something similar to the .draw() paradigm. I would not like to use the header/footer things on the canvas either, as I'm looking to make this text dynamic.
Thanks!
0 Comments
Answers (1)
Walter Roberson
on 4 Aug 2015
The only part of MATLAB that supports canvases is the Symbolic Toolbox. Are you trying to draw on a Java canvas? If so then use the drawText method on your Java canvas object.
2 Comments
Walter Roberson
on 5 Aug 2015
For the Symbolic Toolbox, see http://www.mathworks.com/help/symbolic/annotation.html plot::Text2D or plot::Text3D
See Also
Categories
Find more on Data Import and Export in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!