Vote count:
0
I have a sparse matrix such as
A=sparse(zeros(10,20))% 10 rows by 20 columns
Now, for each iteration, I will put random value for each column
for i=1:20
%% insert value - it is done
end
My task is that find the index of dependent row/column and replate it by zeros values for all element in the dependent row/column. For example, the full matrix A can assume as
full(A)=
[
1 1 1
0 0 1
1 1 1
]
We see that the second column is a dependent row with first column. So my expected result such as
full(A)=
[
1 0 1
0 0 1
1 0 1
]
asked 1 min ago
How to find the index of dependent row/column in sparse matrix
Aucun commentaire:
Enregistrer un commentaire