UnitConvert

this script allow conversion between various engineering units.

Al momento, stai seguendo questo contributo

list=UNITCONVERT give a list of available categories (useful to populate a popupmenu for example)

units=UNITCONVERT('category') give a list of available units for one category

category=UNITCONVERT('unit') give the category name for that unit

DataOut=UNITCONVERT(DataIn,'UnitIn') convert DataIn(matrix) to Standard Unit:
acceleration:meter/sec²
angle:degree
area:meter²
computer:bit
concentration:mole/liter
Density:kilogram/meter³
Distance:meter
Energy:joule
Flow:liter/minute
Force:newton
Light:lux
Mass:kilogram
Power:watt
Pressure:pascal
Rotation:revolution/second
Speed:meter/second
Time:second
Torque:newton meter
Volume:cubic meter
Volume - Dry:liter
Without Dimension:[]

DataOut=UNITCONVERT(DataIn,'UnitIn','UnitOut') convert DataIn(matrix) from UnitIn to UnitOut

Exemple:
UnitConvert(500,'meter','kilometer')
ans =
0.5000

Cita come

Christophe Tilman (2026). UnitConvert (https://it.mathworks.com/matlabcentral/fileexchange/25149-unitconvert), MATLAB Central File Exchange. Recuperato .

Categorie

Scopri di più su Marine and Underwater Vehicles in Help Center e MATLAB Answers

Informazioni generali

Compatibilità della release di MATLAB

  • Compatibile con qualsiasi release

Compatibilità della piattaforma

  • Windows
  • macOS
  • Linux
Versione Pubblicato Note della release Action
1.0.0.0