normr
行列の行の正規化
説明
は、単一の行列または行列の cell 配列 normalized_M
= normr(M
)M
を取り、行の長さが 1 になるように正規化された行列を返します。
例
行列の行の正規化
この例では、関数 normr
を使用して、行列の行を正規化する方法を示します。
2x2
の行列を作成し、関数 normr
を呼び出して、行の長さが 1
になるように正規化します。
m = [1 2; 3 4]; normr(m) ans = 0.4472 0.8944 0.6000 0.8000
ans = 0.4472 0.8944 0.6000 0.8000
入力引数
M
— 正規化する行列
行列 | 行列の cell 配列
正規化する行列。行列、または行列の cell 配列として指定します。
出力引数
normalized_M
— 正規化された行列
行列 | 行列の cell 配列
正規化された行列。行列、または行列の cell 配列として返されます。
バージョン履歴
R2006a より前に導入
参考
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)