How to get symbolic unit in MatLab - symunit -- MatLab

 How to get symbolic unit in MatLab - symunit -- MatLab


 How to get symbolic unit in MatLab?

[Ans]

symunit


How to convert between Units?

operation by symunit
or
 unitConvert

e.g.
kg units to SI units
u = symunit;
m = 2*u.kg;
a = 5*u.m/u.s^2;
F = m*a
%kg units to SI units
F = unitConvert(F,u.N)

e.g.
cm to inch
leng = 5*u.cm;
leng = unitConvert(leng,u.in)

e.g.
any type to SI unit
leng = unitConvert(leng,'SI')

e.g.
Temperature
Celsius to Kevin
u = symunit;
T = 23*u.Celsius;
diffK = unitConvert(T,u.K)
more details on:

Comments