Take absolute value of result data values.
r1=abs(r)
This function replaces all data values of r with their absolute value. For complex results this is equivalent to the magnitude of the complex value.
imat_result/real, imat_result/imag