Dear All,
I am a new user with Matlab, and I meet a problem with Sparse matrix.
Time for processing with Sparse matrix is very long.
Here is my code:
lab=randi([1 7],1,100000);M = sparse(100000,100000);for i = 1:100000 for j = (i+1):100000 if lab(i,1) == lab(j,1) M(j,i) = 1; else M(j,i) = 0; end endend
Do I have any method for reduce timing process? Thanks and Best regard!
Best Answer