Measuring the magnetism of muons