Unit in MatLab -- MatLab

 Unit in MatLab -- MatLab


How to create your own unit?
[Ans]
newUnit command

How to create your own Unit System?
[Ans]
newUnitSystem

How to convert a unit to your own unit? (rewrite unit)
[Ans]
rewrite

How to remove your own Unit?
[Ans]
removeUnit

[NOTE]
You can only remove your own unit.  It is not allowed to remove predfined unit.

How to remove your own UnitSystem?
[Ans]
removeUnitSystem

How to look at available unit system?
[Ans]
unitSystems

How to look at fundamental unit of specified unit?
[Ans]
baseUnits

How to look at extension unit of specified unit?
[Ans]
derivedUnits

e.g.
u = symunit;
warp3 = newUnit('warp3',3*u.c_0)
speed = rewrite(1e10*u.m/u.s,u.warp3)

%cause error
%removeUnit(u.warp3)

Want to learn about All Unit System in MatLab?
Here is a list about Unit System.

more details on:

Comments