Coupling physical signals to usual Simulink signals or other physical domains is a bit tricky sometimes.
You can take a look at the attached image and try to use specifically n-channel MOSFET or p-channel MOSFET to the inductor, or even ideal MOSFET could be used