basically just re-scale the calls by `median(r)`. This may be what matlab does though a bit unclear.