Unary minus (-r).
-r
Taking the negative of an imat_result object causes all data values to be replaced with their negatives.
>> for k=1:length(r) if -min(r(k).data)>max(r(k).data), r(k)=-r(k); end end>>
imat_result/uplus