Question: Question 3 (25 Points) - Write a matlab function called my Factorial Function. This function should accept one input parameter and one output parameter. This

Question 3 (25 Points) - Write a matlab function called my Factorial Function. This function should accept one input parameter and one output parameter. This function should calculate factorial value of given input parameter using while loop and return a result as output parameter. This function should not accept negative numbers as input parameter. You should check with if structure. After definition of my FactorialFunction, you should calculate the formula given below. The number N should be taken from a user. 1!+2!+3!+...+N! Example: Example: Write a number: 4 Write a number: 3 Result is 33 Results is 153
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
