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

subsref_2.m
a = [1.1 2.1 3.1 4.1 5.1]

a([1 3 5])

u = cmu.units;
a = [1.1 2.1 3.1 4.1 5.1]*u.s

a(:,[1 3 5]) = 5*u.s

Contact us