Put text onto a canvas

4 views (last 30 days)
Henry Metro
Henry Metro on 4 Aug 2015
Commented: Walter Roberson on 5 Aug 2015
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!

Answers (1)

Walter Roberson
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
Henry Metro
Henry Metro on 5 Aug 2015
Edited: Henry Metro on 5 Aug 2015
Sorry, I am indeed using this toolbox, and cannot seem to find any sort of convenient method, and I don't know enough about matlab right now to be able to code this from scratch.
Walter Roberson
Walter Roberson on 5 Aug 2015
For the Symbolic Toolbox, see http://www.mathworks.com/help/symbolic/annotation.html plot::Text2D or plot::Text3D

Sign in to comment.

Categories

Find more on Data Import and Export in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!