There are several ways of creating an input signal like the one required, but in my opinion, the “Repeating sequence stair” block is the most simple one to use. You can find it in the “Simulink” library, in the “Sources” folder. (Fig. 1).
Using this block allows you not to add different step blocks, and its programing is straightforward:
1- Introduce your desired values, for every time value in “Vector of output values”.
2- Set “Sample time” to one, assuming your simulation time is in seconds. (Fig. 2).
The “Stop time” of your simulation has to be set to 9 seconds, as your profile is nine seconds long. This simulation will provide you the next input source: (Fig. 3).
If the profile is repeated in time, just set your “Stop time” longer. 18 seconds for two periods for example: (Fig. 4).
Please do not hesitate to ask for any other doubt.