in the experiment , the amount of current through a 10-meter coil on a rail was modulated and the cars were levitated and run by the resulting force of magnetic repulsion between the coil and the permanent magnets on the cars .