Code covered by the BSD License  

Highlights from
Units for Matlab

Units for Matlab

by

 

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

test_abs
function test_abs

u = cmu.units;

a = -1*u.kg;

assertEqual(abs(a),1*u.kg)

assertEqual(abs([-1 -1]*u.s),[1 1]*u.s)

Contact us