3. Loops and cycles
In the last section we learnt how to plug functions into Matlab and how to plot them.
In this section, we learn to use loops as well as plotting results using different variables. Loops are great for repeating the same set of equations or operations. They are great…