Code covered by the BSD License  

Highlights from
Units for Matlab

Units for Matlab

by

John Kitchin

 

This package provides units conversion factors and enforces unit algebra for Matlab

test18.m
clear all;
u = cmu.unit.units;

a = 5*u.m
b = 6*u.s

try
    a + b
catch
    disp('error caught')
end
a*b

a > b

a < b

gt(a,b)

Contact us