Hi for everyone,

I have a matrix that contains zero and nonzero elements

i want to do a function that return 3 arrays

the first one is for nonzero elements

the second array contains the corresponding row numbers of each nonzero element

the third array contains the corresponding column numbers of each nonzero element

Any help please ??