for example,for Aij !=0 bil = Aij i,j,l,++ A = 1 0 2 6 0 0 3 4 0 0 5 0 2 7 4to becomeb=1 2 6 NaN3 4 NaN NaN5 2 7 4
MATLAB: Hello, how can i remove zero from an array and leave the array in the same form? thanks
arraymatrix
arraymatrix
for example,for Aij !=0 bil = Aij i,j,l,++ A = 1 0 2 6 0 0 3 4 0 0 5 0 2 7 4to becomeb=1 2 6 NaN3 4 NaN NaN5 2 7 4
Best Answer