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://jp.mathworks.com/matlabcentral/fileexchange/5863-changeunit), MATLAB Central File Exchange. に取得済み.

謝辞

ヒントを得たファイル: Units (updated)

ヒントを与えたファイル: Unit Conversion Tools

カテゴリ

Help Center および MATLAB AnswersConvert Image Type についてさらに検索

一般的な情報

MATLAB リリースの互換性

  • すべてのリリースと互換性あり

プラットフォームの互換性

  • Windows
  • macOS
  • Linux
バージョン 公開済み リリース ノート Action
1.0.0.0

compact code