This function works just like the figure command in MATLAB except that you reference figures by names instead of figure handles. (you can still use the handles though)
The title of the window of the figure will now be 'My figure'. You can also set figure properties with the same call:
It will also place the figure window on the monitor with the current mouse position.
Aslak Grinsted (2020). Naming figures (fig.m) (https://www.mathworks.com/matlabcentral/fileexchange/3431-naming-figures-fig-m), MATLAB Central File Exchange. Retrieved .
Fixed a bug in positioning code.
*no longer lets it change paperorientation by default.
Update: Only sets any default attributes if a new figure is created... Uses orient landscape instead of set(H,'orientation','landscape').