Remove unit system
removeUnitSystem( removes the
unitSystem. You can remove only user-defined unit
systems created with
newUnitSystem. You cannot remove
predefined unit systems listed in Unit Systems List.
Remove Unit System
Define a unit system, use the unit system to rewrite units,
and then remove the unit system by using
Define the unit system
mySystem with SI base units and
the derived unit kilowatt hour.
u = symunit; bunits = baseUnits('SI'); dunits = [u.kWh]; mySystem = newUnitSystem('mySystem',bunits,dunits)
mySystem = "mySystem"
Convert 50,000 Joules to derived units of
rewrite with the third argument
'Derived'. As expected, the result is in kilowatt
ans = (1/72)*[kWh]
Remove the unit system
mySystem by using
Converting units to
mySystem now throws an
unitSystem — Name of unit system
string | character vector
Name of the unit system, specified as a string or character vector.
Introduced in R2017b