You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
CHANGEUNIT
CHANGEUNIT(x,'unit1','unit2') - Converts array x from physical unit1
to unit2
Example: changeunit(1,'in','mm') = 25.4
This is a very compact/fast/simple version of units.m(by Henning Ressing) which has been very useful to me but is not very easy to read because of a flood of switch-case statements.
Cite As
Mukhtar Ullah (2026). CHANGEUNIT (https://au.mathworks.com/matlabcentral/fileexchange/5863-changeunit), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.0.0.0 (6.12 KB)
-
No License
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0.0 | compact code |
