Code covered by the BSD License  

Highlights from
winpos

5.0

5.0 | 1 rating Rate this file 7 Downloads (last 30 days) File Size: 1.72 KB File ID: #37134
image thumbnail

winpos

by

 

12 Jun 2012 (Updated )

positions figure windows according to input string

| Watch this File

File Information
Description

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.

Required Products MATLAB
MATLAB release MATLAB 7.10 (R2010a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (3)
28 Jun 2012 Elad

example plz

13 Jun 2012 Deborah

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

12 Jun 2012 Jan Simon

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
20 Jun 2012

Updated error handling and removed unnecessary code

Contact us