Slide 1 MATLAB Loops and Branching Slide 2 Loop types Counted loops; called for loop Conditional loops; called while loop Slide 3 Looping! Scripts and functions also allow…