problem solved thank you
이전 댓글 표시
답변 (1개)
Walter Roberson
2014년 2월 22일
Hint:
diag(a,b) + diag(c,d)
댓글 수: 4
john hollywood
2014년 2월 22일
Walter Roberson
2014년 2월 22일
Did you try playing with the Example on the diag documetnation? Assign an integer value to "m" and then run the line of code and see what it gives. Then start picking apart the parts of the expression to see how the parts fit together.
john hollywood
2014년 2월 22일
Star Strider
2014년 2월 22일
For a 5x5 matrix, the main diagonal needs to have 5 elements: [2 2 2 2 2].
카테고리
도움말 센터 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!