File Exchange

image thumbnail

winpos

version 1.1 (1.72 KB) by

positions figure windows according to input string

0 Downloads

Updated

View License

This functions positions a figure window on screen according to an input string. There a 9 small positions and 4 larger positions available (but can easily be adjusted).
The screen positions names are derived from Latex heading/footer names.
A detailed explanation on where the positions are can be seen in the help file.

This is quite useful if you are working with a large number of open figures and need to see them all at once, or if a specific window should be raised at the same position more than once.

Comments and Ratings (3)

Elad

example plz

Deborah

Thanks Jan for your suggestions, I will implement them in a future version of the function!

Jan Simon

Jan Simon (view profile)

A good idea.
You can omit the time-consuming STRMTACH check: On one hand FIND(STRCMP()) is much faster and supported in the future also, you can move the error handling to an OTHERWISE branch of the SWITCH list instead. Currently the comparision of the position strin g is done twice.
I'd prefer "North", "NorthEast", ... or "TopLeft", "TopCenter", ... instead of "HL", "HR", ... But the diagram in your help text is such descriptive, that your naming method is usable.
Your help text has a H1 line, is descriptive and specifies the date and the author. The units of the figure are considered.

Updates

1.1

Updated error handling and removed unnecessary code

MATLAB Release
MATLAB 7.10 (R2010a)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video