i have the matrix
x=[0 -1 0 5 10 5 0 0; 0 0 5 10 20 10 5 0; 1 -1 0 5 10 5 2 0; 0 2 1 0 5 2 1 0; 0 0 0 -10 0 0 0 0;]
i would like to "disappear" the values between -1 and 5 and keep the matrix with same struct but only the wanted values. the new matrix going to be something like this:
x=
[ 10 ; 10 20 10 ; 10 ; ; -10 ;]
Best Answer