Creating a vector from the diagonal values of a square matrix
34 ビュー (過去 30 日間)
古いコメントを表示
Hello,
Does anybody know how I can read the diagonal values of a square matrix and create a vector (1:n) from those values?
Cheers,
Cyrus
0 件のコメント
採用された回答
Ahmet Cecen
2014 年 7 月 30 日
vector=diag(matrix);
check help diag for more detailed information.
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Operating on Diagonal Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!