필터 지우기
필터 지우기

creating an 8x8 matrix using "diag"

조회 수: 4 (최근 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 CenterFile Exchange에서 Logical에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by