Adds new dimension to unit registry


  • pm_adddimension(dimension,unitname) example



pm_adddimension(dimension,unitname) adds a new unit dimension with a fundamental unit, unitname.


expand all

Add Unit Dimension

Add a new unit dimension.


The unit registry contains a new dimension, length, with a fundamental unit of meter, m.

Input Arguments

expand all

dimension — Name of dimension to add to the unit registrystring

Name of dimension to add to the unit registry, specified as a string. You can specify any string.

Data Types: char

unitname — Fundamental unit for new dimensionstring

Fundamental unit used for the new dimension, specified as a string. The string must be a valid unit name: it must begin with a letter and contain only letters and numbers.

Data Types: char

Was this topic helpful?