ドキュメンテーションヘルプ センター
最新のリリースでは、このページがまだ翻訳されていません。 このページの最新版は英語でご覧になれます。
コンパニオン行列
A = compan(u)
A = compan(u) は、u が多項式の係数ベクトルのとき、最初の行が -u(2:n)/u(1) である、対応するコンパニオン行列を返します。compan(u) の固有値は、多項式の根です。
u
-u(2:n)/u(1)
compan(u)
すべて折りたたむ
多項式 (x-1)(x-2)(x+3)=x3-7x+6 に対応するコンパニオン行列を計算します。
u = [1 0 -7 6]; A = compan(u)
A = 3×3 0 7 -6 1 0 0 0 1 0
A の固有値が多項式の根です。
A
eig(A)
ans = 3×1 -3.0000 2.0000 1.0000
この関数は GPU 配列を完全にサポートしています。詳細については、GPU での MATLAB 関数の実行 (Parallel Computing Toolbox)を参照してください。
この関数は分散配列を完全にサポートしています。詳細については、分散配列を使用した MATLAB 関数の実行 (Parallel Computing Toolbox)を参照してください。
eig | poly | polyval | roots
eig
poly
polyval
roots
この例の変更されたバージョンがシステム上にあります。代わりにこのバージョンを開きますか?
次の MATLAB コマンドに対応するリンクがクリックされました。
コマンドを MATLAB コマンド ウィンドウに入力して実行してください。Web ブラウザーは MATLAB コマンドをサポートしていません。
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:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office