Use shorthand for text layout
Versión 1.1.0.0 (1,19 KB) por
Aslak Grinsted
Allows you to specify alignment options using single character flags.
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
EXAMPLE:
ltext(1,1,'Text in top left corner','nrt')
-----
Aslak Grinsted 2014
Citar como
Aslak Grinsted (2026). Use shorthand for text layout (https://es.mathworks.com/matlabcentral/fileexchange/48305-use-shorthand-for-text-layout), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Se creó con
R12
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS LinuxCategorías
Más información sobre Characters and Strings en Help Center y MATLAB Answers.
Etiquetas
Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.
