CHANGEUNIT(x,'unit1','unit2') - Converts array x from physical unit1
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.
Mukhtar Ullah (2023). CHANGEUNIT (https://www.mathworks.com/matlabcentral/fileexchange/5863-changeunit), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!