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
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.