No BSD License  

Highlights from
Automatic UNITS conversion

from Automatic UNITS conversion by Riccardo Meldolesi
Eliminate UNITS related errors in code, through automatic units conversion

compositeUnit(name,value)
function this = compositeUnit(name,value)
% the direct instantiation of COMPOSITEUNIT objects is deprecated.
% It should only be used used by the functions of the class UNIT

[thisUnit,setComposite] = unit;

this = class(struct([]),'compositeUnit',thisUnit);

this.unit = setComposite(this.unit,this,name,value);

   

Contact us at files@mathworks.com