rref
行簡約階段形行列 (ガウス・ジョルダン消去法)
構文
説明
rref(A)
は、シンボリック行列 A
を行簡約階段形に変換します。行列の要素にシンボリックな自由変数が含まれる場合、rref
は行列を非ゼロと見なします。
線形方程式系を解くには、linsolve
を使用します。
例
数値行列の行簡約階段形の計算
魔方陣行列の行簡約階段形を計算します。
rref(sym(magic(4)))
ans = [ 1, 0, 0, 1] [ 0, 1, 0, 3] [ 0, 0, 1, -3] [ 0, 0, 0, 0]
シンボリック行列の行簡約階段形の計算
次のシンボリック行列の行簡約階段形を計算します。
syms a b c A = [a b c; b c a; a + b, b + c, c + a]; rref(A)
ans = [ 1, 0, -(- c^2 + a*b)/(- b^2 + a*c)] [ 0, 1, -(- a^2 + b*c)/(- b^2 + a*c)] [ 0, 0, 0]
バージョン履歴
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)