creating an 8x8 matrix using "diag"

2 ビュー (過去 30 日間)
Liam Sullivan
Liam Sullivan 2020 年 1 月 22 日
回答済み: James Tursa 2020 年 1 月 22 日
So im trying to create an 8x8 matrix with 2's in the diagonal but 0s everywhere else. I used diag(8,8)*0 + 2 but that gived me 2's everywhere.

採用された回答

James Tursa
James Tursa 2020 年 1 月 22 日

その他の回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by