CHANGEUNIT

CHANGEUNIT (converts between units).

您现在正在关注此提交

CHANGEUNIT
CHANGEUNIT(x,'unit1','unit2') - Converts array x from physical unit1
to unit2
Example: changeunit(1,'in','mm') = 25.4

This is a very compact/fast/simple version of units.m(by Henning Ressing) which has been very useful to me but is not very easy to read because of a flood of switch-case statements.

引用格式

Mukhtar Ullah (2026). CHANGEUNIT (https://ww2.mathworks.cn/matlabcentral/fileexchange/5863-changeunit), MATLAB Central File Exchange. 检索时间: .

致谢

参考作品: Units (updated)

启发作品: Unit Conversion Tools

类别

Help CenterMATLAB Answers 中查找有关 Convert Image Type 的更多信息

一般信息

MATLAB 版本兼容性

  • 兼容任何版本

平台兼容性

  • Windows
  • macOS
  • Linux
版本 已发布 发行说明 Action
1.0.0.0

compact code