I am working with a 3072 x 3072 sparse matrix which supposedly has some structured blocks which are positive definite,some blocks of zero and some unstructured blocks.Right now I have extracted all the non zero indices of the matrix and arranged column indices for every row having non zero values .I am trying to find clusters in these non zero elements by using excel and plotting 25 rows each for columns indices that appear to be closer.Since the matrix is a large one ,this is quite tedious and time consuming.
Could anyone please suggest an efficient way to find and visualize such structure in the matrix?

답변 (1개)

Matt J
Matt J 2021년 11월 1일

0 개 추천

The spy() command?

댓글 수: 7

bashir ud din
bashir ud din 2021년 11월 1일
I am using it to visualize the sparsity pattern.But I am interested to fetch the indices of the blocks so that I can understand where each blocks starts and end and possibly invert a specific block.
Matt J
Matt J 2021년 11월 1일
편집: Matt J 2021년 11월 1일
Why can't you read the indices off the spy() plot? Aren't you already doing a visual, interactive search via Excel?
bashir ud din
bashir ud din 2021년 11월 1일
I have used find command to get the indices of non zeros but the problem is that they are not continuous in a way to detect blocks from them and I am just plotting them my my intuition,nothing mathematical behind that. My spy plot looks like this
Is it possible to get the indices of theses different patterns separately ,for example the one in the middle,and the small lines at the boundries etc.Is there any command for it?
Matt J
Matt J 2021년 11월 1일
You can just zoom in on those features and read the index ranges off the axes.
bashir ud din
bashir ud din 2021년 11월 1일
Ok .In my opinion ,it is still a tedious and prone to error approach.
Matt J
Matt J 2021년 11월 1일
To automate it further, you need more criteria for the blocks you are looking for.
bashir ud din
bashir ud din 2021년 11월 1일
I understand your point.Thanks very much for the guidance!

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

카테고리

질문:

2021년 11월 1일

댓글:

2021년 11월 1일

Community Treasure Hunt

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

Start Hunting!

Translated by