It is the first time that having a diagonal matrix matlab keeps writing the indices of the matlab element I am requiring and then the element values
below I report the results for matlab command window
1.0e+05 *
(1,1) -1.2727
(1,2) 0.0001
vv has been extracted from a structure
Can you explain this behviour

 채택된 답변

Bruno Luong
Bruno Luong 2020년 7월 6일

1 개 추천

It's a SPARSE matrix

댓글 수: 4

Marco Pirola
Marco Pirola 2020년 7월 6일
OK, how can I convert in a regular matrix or extract regular scalar from it?
Thanks a lot
Extract scalar between sparse and full matrix uses the same syntax
M(i,j)
To convert to full matrix
A = full(S)
Marco Pirola
Marco Pirola 2020년 7월 6일
Great, nice shot
Many thanks
Matt J
Matt J 2020년 7월 6일
@Marco,
Since you are clearly satisfied with Bruno's answer, you should Accept-click it.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 MATLAB에 대해 자세히 알아보기

제품

질문:

2020년 7월 6일

댓글:

2020년 7월 6일

Community Treasure Hunt

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

Start Hunting!

Translated by