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

test8.m
clear all
u = cmu.unit.units;
a = 5*u.m;
b = 5*u.s;

%assert(a ~= b)

sprintf('%f %1.2f',1,a)

Contact us