MATLAB: How to feed discrete i/p to simulink model

discrete i/p

can any one tell me please how to give a discrete input per cycle to simulink model? i mean i want to give input like 01011 and model should take the input one by one per cycle. So first cycle it should take i/p as 0, next cycle 1, next+1 cycle 0 etc.

Best Answer

Possible with any of the following blocks
Sources\From Workspace
Sources\Repeating Sequence
Sources\Repeating Stair