Base units of unit system
Base Units of Unit System
Get the base units of a unit system by using
baseUnits. Then, modify the base units and create a new
unit system using the modified base units. Available unit systems include SI,
CGS, and US. For all unit systems, see Unit Systems List.
Get the base units of the
SI unit system.
SIUnits = baseUnits('SI')
SIUnits = [ [kg], [s], [m], [A], [cd], [mol], [K]]
Do not define a variable called
the variable will prevent access to the
Define base units that use kilometer for length and hour for time by
u = symunit; newUnits = subs(SIUnits,[u.m u.s],[u.km u.hr])
newUnits = [ [kg], [h], [km], [A], [cd], [mol], [K]]
Define the new unit system by using
ans = "SI_km_hr"
To convert units between unit systems, see Unit Conversions and Unit Systems.
unitSystem — Name of unit system
string | character vector
Name of the unit system, specified as a string or character vector.