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
Name of the unit system, specified as a string or character vector.