How can I visualize the data of a sparse matrix using a vector

It is a sparse matrix from Matlab yes, I managed to solve the problem this way:

The vector with the indexes was like this:
println(size(index))
(6770, 1)

I did like this:
index = reshape(index, 6770, );

x= (list[index])