View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
Units for Matlab

Be the first to rate this file! 4 Downloads (last 30 days) File Size: 34.4 KB File ID: #36878 Version: 1.0

Units for Matlab



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

| Watch this File

File Information

This package provides a units class that enforces unit algebra, e.g. m*m = m^2, m + s is undefined, for Matlab. All the standard operators are defined, and many linear algebra, nonlinear algebra, ode solvers, data fitting functions are overloaded to allow units to be used with them (enough for use in a typical chemical engineering course). The package automatically performs conversions, so 1*kg + 1*lb is straightforward. This package is more complete and functional than previous units implementations in File Exchange.

Warning: not every function is overloaded, and many functions tend to silently drop units!

Basic usage is:
u = cmu.units;
a = 1*;
b = 1*;
a + b

Examples of using the package can be found in the tests directory, and at

Find the current version and submit bugs at


Simple Units And Dimensions For Matlab and Units And Dimensions Suite For Matlab inspired this file.

MATLAB release MATLAB 7.13 (R2011b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.

Contact us