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.
Thanks Jan for your suggestions, I will implement them in a future version of the function!
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.
Updated error handling and removed unnecessary code
Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.