Unit Conversion

Version 1.0.0 (2.13 KB) by Haddon
This function converts certain units of time, distance, speed, weight, and volume.
13 Downloads
Updated 3 Dec 2022

View License

Provide three inputs for the function. The first is the value you would like to convert. The second is the current units of that value, and the third is the units you would like to convert your value to. All inputs must be strings in order for the code to run properly. All conversion rates are based on Google's unit conversion machine, except for Cups to ml, which is based on a more accurate estimate than google provides.

Cite As

Haddon Baker (2022). Unit Conversion (https://www.mathworks.com/matlabcentral/fileexchange/<...>), MATLAB Central File Exchange.

MATLAB Release Compatibility
Created with R2022a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0