diag(.) does not work
조회 수: 5 (최근 30일)
이전 댓글 표시

diag function works in a wrong way as shown in the figure. How can i fix it?
댓글 수: 2
답변 (2개)
Walter Roberson
2018년 10월 27일
I suspect you accidentally assigned zeros to a variable named diag, so your call is indexing rather than invoking the function.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Matrix Indexing에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!