figure axis ([-10, 100, -10, 100]); % Should be big enough to show all the text th = text (1, 1, 'Why am I using Matlab, when I could be using Octave?'); unrot = get (th); set (th, 'Rotation', 45); rot = get (th); units = {'pixels', 'normalized', 'inches', 'characters', 'centimeters', 'points', 'data'}; for k = 1:length (units) unit = units {k}; set (th, 'Units', unit); cmd = sprintf ('rot_%s = get (th);', unit); eval (cmd); end figure plot3 ([1, 100], [1, 100], [1, 100]); th = text (1, 1, 1, 'I really miss using " for strings'); unrot3 = get (th); set (th, 'Rotation', 45); rot3 = get (th); for k = 1:length (units) unit = units {k}; set (th, 'Units', unit); cmd = sprintf ('rot3_%s = get (th);', unit); eval (cmd); end save extent_test.mat