Finding the adjoint of a Matrix

46 ビュー (過去 30 日間)
Salad Box
Salad Box 2018 年 10 月 22 日
コメント済み: Salad Box 2018 年 10 月 22 日
Hi
I'm trying to find the adjoint of a matrix. On MathWorks documentation webpage, the instruction look something like below.Noticed that it is using a R2018b version. The Matlab version I'm using is R2017a.
When I put the example into matlab, what I get is as follows:
>> which adjoint C:\Program Files\MATLAB\R2017a\toolbox\symbolic\symbolic\@sym\adjoint.m % sym method
Does anyone know why do I get the error message and how to fix it?
Many thanks!

採用された回答

Stephan
Stephan 2018 年 10 月 22 日
編集済み: Stephan 2018 年 10 月 22 日
Hi,
the function adjoint works on symbolic matrices in 2017a only - try:
A = sym(magic(3))
B = double(adjoint(A))
The follwing link is for R2017a documentation start site.
Best regards
Stephan
  1 件のコメント
Salad Box
Salad Box 2018 年 10 月 22 日
That works! Thank you.:)

サインインしてコメントする。

その他の回答 (1 件)

Matt J
Matt J 2018 年 10 月 22 日
For numeric matrices, you can use this FEX contribution.
  1 件のコメント
Salad Box
Salad Box 2018 年 10 月 22 日
Thanks for sharing!:)

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeLinear Algebra についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by