How can I see the full matrix when I use spdiags() ?
조회 수: 2 (최근 30일)
이전 댓글 표시
Hey there,
I am currently using the function spdiags and the outcome is the following:
An:
(1,1) 4
(2,1) -1
(1,2) -1
(2,2) 4
(3,2) -1
(2,3) -1
(3,3) 4
(4,3) -1
(3,4) -1
(4,4) 4
with this particular input : An = spdiags([- ones(n ,1) , 4* ones(n ,1) , - ones(n ,1)] , [ -1 , 0 , 1] , n , n)
Is there perhaps a way to see the full matrix instead of just this?
Thanks in advance!
댓글 수: 0
채택된 답변
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!