Cite As
Christopher Pedersen (2025). unit (https://www.mathworks.com/matlabcentral/fileexchange/46045-unit), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
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 | |
---|---|---|---|
3.21 | - Documentation updated for clarity
|
||
3.2 | Fixed bug where some compound units did not resolve correctly.
|
||
3.1.0.0 | Bug fixed: negative prefixes became positive (e.g. mm became 1E3 m rather than 1E-3m).
|
||
3.0.0.0 | Added handling of nondimensional units.
|
||
2.6.0.0 | added: allows nondimensional units
|
||
2.4.0.0 | added 'detail' option that shows how each term of each unit is parsed |
||
2.3.0.0 | 'verb' option gives additional reporting at each step (scale and power)
|
||
2.2.0.0 | Corrected unit pound (weight) - was missing the last digit
|
||
2.1.0.0 | Added definitions of Calorie and FoodCalorie
|
||
2.0.0.0 | Added additional units (lightSpeed, horsepower, etc).
|
||
1.4.0.0 | Fixed misspelling of unit "celsius" |
||
1.3.0.0 | Added ability to use custom units. |
||
1.2.0.0 | Added absolute temperature conversion.
|
||
1.1.0.0 | New: allows a single input instead of two. Does not perform a conversion, instead just reports that one unit.
|
||
1.0.0.0 |