File Exchange

image thumbnail

Use shorthand for text layout

version (1.19 KB) by Aslak Grinsted
Allows you to specify alignment options using single character flags.

1 Download

Updated 30 Oct 2014

View License

Shorthand layout of text objects
USAGE: h=ltext(x,y,s,flags[,parameter-value-pairs])
flags is a string of one character layout options for the text object.
Valid options are:
n: normalized-units
c: center horizontal alignment
r: right horizontal alignment
l: left horizontal alignment
t: top vertical alignment
b: bottom vertical alignment
m: middle vertical alignment

ltext(1,1,'Text in top left corner','nrt')

Aslak Grinsted 2014

Cite As

Aslak Grinsted (2020). Use shorthand for text layout (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (0)


Fixed help text

MATLAB Release Compatibility
Created with R12
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags