The magnetically driven sample experiments which were carried out in a intense pulsed power device are simulated and analyzed by two-dimensional magnetically driven simulation code (MDSC2), and the structure coefficient of magnetically driven sample experiments is studied and analyzed. The numerical results show that MDSC2 code can correctly simulate experiments of magnetically driven samples such as tin and magnesium-aluminum alloy. The simulated sample/window interface velocity (or flyer plate/window interface velocity) is basically consistent with the experimental measured one. The structure coefficients of magnetically driven samples are usually different when the magnetically driven sample experiments are different. The structure coefficient of magnetically driven sample experiment is related to the initial conditions such as the sample material and the width of the electrode plate but not to the initial thickness of the sample material. Under the same initial conditions, such as the thickness of the flyer plate, the material of the flyer plate, the material of the sample, the initial gap between the cathode and the anode, the wider the electrode plate, the larger the structure coefficient of the magnetic drive sample experiment. MDSC2 code can correctly simulates the magnetically driven sample experiments, which makes MDSC2 code an important tool for the study of magnetically driven sample experiments.