Question: 6 Use while loop to calculate a factorial In this part, you will use while loop to evaluate a factorial. In the file ftl.m, you
6 Use while loop to calculate a factorial In this part, you will use while loop to evaluate a factorial. In the file ftl.m, you will find the outline of a MATLAB function. Modify it to return y which is the factorial of n, namely y n!' When you are finished, run project1.m. You should see output like: 101 =3628800
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
