UnitConvert

this script allow conversion between various engineering units.
646.0 次下载
更新时间 2009/8/27

查看许可证

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

引用格式

Christophe Tilman (2024). UnitConvert (https://www.mathworks.com/matlabcentral/fileexchange/25149-unitconvert), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2009a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Marine and Underwater Vehicles 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0.0