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

test15.m
clear all
u = cmu.units;

a = [ 1 3]*u.J;
b = [3 3]*u.s;

c = a./b;

c(1).as(u.J./u.s)

a = [ 1*u.J 3/u.s];
b = [3*u.s 3/u.J];

c = a./b;

c(1).as(u.J./u.s)

Contact us