Code covered by the BSD License  

Highlights from
RenderText

Be the first to rate this file! 11 Downloads (last 30 days) File Size: 5.72 KB File ID: #26097
image thumbnail

RenderText

by

 

14 Dec 2009 (Updated )

Draws text (font) into a matrix, by first drawing it in a figure, then capturing the screen.

| Watch this File

File Information
Description

Draws (renders) text fonts into a matrix, by first drawing it in a figure, then capturing the screen. There are two versions, a "simple" one that only takes a couple of inputs, and the full version that has more flexibility, but perhaps some obtuse inputs.

I have many times wanted to make a matrix (and/or save to a file) an image that includes matlab-generated text in my choice of fonts, and now one can do so with ease.

See the comments in the files for more info, and be sure to run these demos:
testRenderText.m
testRendreTextSimple.m

MATLAB release MATLAB 7.5 (R2007b)
Other requirements Requires getscreen.m from the Matlab User Community (free) which in turn seems to require some sort of Java.
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Updates
07 Jan 2010

(updated to fix a bug in one of the demos)

Contact us