Unit Conversion

Version 1.0.0 (5.74 KB) by B.R.P
Universal Unit Converter with Engineering Focus: A MATLAB unit conversion toolbox that supports engineering, physics, and everyday units.
4 Downloads
Updated 28 Sep 2025

View License

Universal Unit Converter (Engineering Edition)
🔹 What it is
A MATLAB unit conversion toolbox that supports engineering, physics, and everyday units.
It understands SI, Imperial, prefixes, compound units, and even temperatures (absolute and deltas).
🔹 Why use it
  • Covers all major engineering domains: mechanics, thermodynamics, electricity, materials
  • Works with compound expressions (N*m, kg/m^3, J/C, 1/s, etc.)
  • Handles aliases and shorthand:
  • mile = mi
  • lb = lbf
  • sec = s
  • meter = m
🔹 Quick Examples
uconvert(10,'cm','m') % 0.1
uconvert(
1,'mile','ft')
uconvert(
1,'N*m','lbf*ft')
uconvert(
60,'mile/hr','m/s')
uconvert(
25,'degC','K')
uconvert(
68,'degF','degC')
uconvert(
10,'degF_delta','K')
🔹 Included
  • uconvert.m — the engine
  • demo_uconvert.m — ready-to-run showcase
🔹 Demo Output
10 cm in meters = 0.100 m
1 mile in feet = 5280.000 ft
1 N*m in lbf*ft = 0.738 lbf*ft
101325 Pa in psi = 14.696 psi
1 hp in Watts = 745.700 W
1 kWh in BTU = 3412.142 BTU
60 mile/hr in m/s = 26.822 m/s
1 g/cm^3 in kg/m^3 = 1000.0 kg/m^3
25 degC in K = 298.15 K
68 degF in degC = 20.00 degC
10 degF_delta in K = 5.56 K

Cite As

B.R.P (2026). Unit Conversion (https://uk.mathworks.com/matlabcentral/fileexchange/182151-unit-conversion), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2025b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags
Version Published Release Notes
1.0.0