Simple Units and Dimensions for Matlab
No License
***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 (2024). Simple Units and Dimensions for Matlab (https://www.mathworks.com/matlabcentral/fileexchange/9873-simple-units-and-dimensions-for-matlab), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxTags
Acknowledgements
Inspired: Units and Dimensions Suite for Matlab, Fundamental Physical Constants and Unit Conversion in SI (MKS) & Gaussian (CGS) Units, Units for Matlab
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 | Improved the self-contained help. |