Hi @Esin Derin
It can be very frustrating when one is not familiar with the MATLAB coding + Loop, and pressurized to complete the Lab report. When I look into the task, it does not require you to use Looping. Thus, I'd suggest you do something very simple like this to get very comfortable at modeling. Record the Scope output and paste it into your lab report. When you have free time later, slowly explore the program and additional features that you are interested in.