This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.


Adds new dimension to unit registry





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


collapse all

Add a new unit dimension.


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

Introduced in R2007a