Are you trying to solve a specific from the book?
Use a "Pulse Generator" block to set the switching frequency and duty cycle. power electronics with matlab ashok kumar pdf link
If you are following a tutorial from the book, here is the standard workflow in MATLAB: Type simulink in the MATLAB command window. Are you trying to solve a specific from the book