Simple Units and Dimensions for Matlab

This code provides an effecient, easy to use, method of incorporating real world units ...

You are now following this Submission

***Note***
This method of using units is quick and clean. For a more complete version that automatically does dimensional analysis, see the file entitled "Units and Dimensions Suite for Matlab" (See the Acknowledgements section below)
*******

The units.m function returns a struct containing the SI values of many common units. The self-contained help demonstrates how to use this struct to cleanly and effeciently perform matlab calculations using commonly encountered units and physical constants. The code is easily modified to include any non-standard unit or constant desired. This method for handling units was inspired by the methods used by MathCAD.

Cite As

Rob deCarvalho (2026). Simple Units and Dimensions for Matlab (https://www.mathworks.com/matlabcentral/fileexchange/9873-simple-units-and-dimensions-for-matlab), MATLAB Central File Exchange. Retrieved .

Categories

Find more on Chemistry in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0

Improved the self-contained help.