Help

How do I write this in MATLAB? I tried inputting my version of the code but the output never reaches a steady state.

How do I write this in MATLAB? I tried inputting my version of the code but the output never reaches a steady state.