Unit converter package
Versión 1.0.0 (7,65 KB) por
Chris Wilkening
Includes common STEM unit conversions. Easily expandable by user - define one new unit pair to get conversions with all other units.
Standalone MATLAB files to do common STEM unit conversions.
Conversion files included those for: Distance, Angles, Power, Area, Volume, Time, Speed, Digital storage, Pressure, Mass, Frequency, Force, Energy.
Usage format:
distanceInMeter = unit.len.ft_to_m(1.234);
Within conversion files (e.g., ft_to_m.m) are:
- Numerical conversion factor
- Step-by-step conversion details
- Data sources
- Full unit names
- Notes
Every conversion file is fully self-contained, runs quickly and without further function calls.
Adding new units:
- Only one relation to an existing unit must be specified
- Example: to add "rods" (1 rod = 16.5 ft) to length conversions:
- >> Add a single "rods = f(feet)" definition.
- >> Re-run makeUnitConversionsFiles.m.
- Conversions to/from rods will be automatically created for all other length units.
- See files in +numericalDataTrees for details.
Local verification of conversions done with checkUnitsConversionFiles.m.
Keywords: units, conversion, converter
Citar como
Chris Wilkening (2025). Unit converter package (https://es.mathworks.com/matlabcentral/fileexchange/181826-unit-converter-package), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Se creó con
R2023b
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS LinuxEtiquetas
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.
| Versión | Publicado | Notas de la versión | |
|---|---|---|---|
| 1.0.0 |
