HOME
PDF

Small untility to change units of a Matlab .fig file

Nasser M. Abbasi

May 18, 2011 page compiled on July 4, 2015 at 2:47am

This small untility will allow one to change all the units on UIcontrols in a fig file. It will ask for the fig file name, change the field 'Units' in each UIcontrol in the fig file and overwrite the same fig file.

PIC

To use this, download the following zip file to the some folder on your computer, and unzip it to extract the 2 files in it.

Then from Matlab console, type change_figure_units

change_figure_units_code.zip

Code listing

1.
change_figure_units.m
2.
nma_set_figure_position.m
3.
change_figure_units.fig