findUnits
入力内の単位を求める
説明
例
式の中の単位を求める
方程式または式の配列内の単位を求める
findUnits
を使用して、方程式または式の配列内の単位を求めます。関数 findUnits
は入力内のすべての単位を連結して単位の行ベクトルを返します。findUnits
は基本単位のみを返します。
u = symunit; array = [2*u.m + 3*u.K, 1*u.N == 1*u.kg/(u.m*u.s^2)]; units = findUnits(array)
units =
入力引数
expr
— 入力
シンボリック数 | シンボリック変数 | シンボリック ベクトル | シンボリック行列 | シンボリック多次元配列 | シンボリック関数 | シンボリック式
入力。シンボリック数、変数、ベクトル、行列、多次元配列、関数、またはシンボリック式として指定します。
バージョン履歴
R2017a で導入
参考
checkUnits
| isUnit
| newUnit
| separateUnits
| symunit
| str2symunit
| symunit2str
| unitConversionFactor
外部の Web サイト
MATLAB コマンド
次の MATLAB コマンドに対応するリンクがクリックされました。
コマンドを MATLAB コマンド ウィンドウに入力して実行してください。Web ブラウザーは MATLAB コマンドをサポートしていません。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)