up

PDF (letter size)

Small utility to change units of a Matlab .fig file

Nasser M. Abbasi

May 18, 2011   Compiled on September 10, 2023 at 9:22am

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.

pict
Figure 1: screen shot

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