Question: MATLAB question: 3. (8 points) Write a MATLAB function (myFactorial.m) that computes and returns the factorial of a single number (a scalar) or a vector
MATLAB question:

3. (8 points) Write a MATLAB function (myFactorial.m) that computes and returns the factorial of a single number (a scalar) or a vector of numbers. In your function code, do not use MATLAB's factorial function. Include help documentation. Your myFactorial function must behave as shown below, with your student information where indicated. User input is underlined. >> help myFactorial myFactorial - compute and return the factorial of num myFactorial (num) returns the factorial of num, where num is a scalar or a vector of numbers. Note: This function does *not* use MATLAB's factorial function. Author:
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
