How can I create a matrix with diagonal structure that is neither upper nor lower triangular matrix?
1 回表示 (過去 30 日間)
古いコメントを表示
Hello everyone,
I would like to create a matrix of the following structure on a large scale:
B=[2 3 4 5 6; 3 4 5 6 0; 4 5 6 0 0; 5 6 0 0 0; 6 0 0 0 0]
How can I do this in an efficient manner?
Thank you
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!