Main Content

pm_adddimension

Adds new dimension to unit registry

Description

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

example

Examples

collapse all

Add a new unit dimension.

pm_adddimension('length','m')

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

Input Arguments

collapse all

Name of dimension to add to the unit registry, specified as a character vector or string scalar. You can specify any name.

Data Types: char | string

Fundamental unit used for the new dimension, specified as a character vector or string scalar. The unit name must begin with a letter and contain only letters and numbers.

Data Types: char | string

Version History

Introduced in R2007a