Question: Question 1 Write a matlab function that takes 1 number as an input parameter and returns its factorial as output parameter. Example: 4! = 24

Question 1 Write a matlab function that takes 1 number as an input parameter and returns its factorial as output parameter. Example: 4! = 24 Example 2: 5! = 120 Question 2 Write a matlab function that takes 2 numbers as input parameters and returns their permutation as an output parameter. Example: 4! / (4-3)! = 24 Example 2: 5! / (5-2)! = 20 P(n,r) = n! / (n-r)! HW3 - Write a matlab function that takes 2 numbers as input parameters and returns their combination as an output parameter. Example: 5! / ((5-2)! * 2!) = 10 HW4 Write a matlab function that takes 2 numbers as input parameters and returns both its permutation and its combination as output parameters. Example: Permutasyon = 5! / (5-2)! = 20 Combinasyon = 5! / ((5-2)! * 2!) = 10 Question5 Write a matlab function that takes 2 numbers as input parameter taken from a user and returns the greatest one and the lowest one as output parameters. Example: Write a number: 5 Write a number: 12 The greatest one is 12 The lowest one is 5 Question6 Write a matlab function that takes a vector as input parameter and returns the greatest one and the lowest one as output parameters. Example: Vector = [5,1,3,4,9,44,12,34,-1] The greatest one is 44 The lowest one is -1 HW7 Combine Q5 and Q6 into one function by using nargin function. HW8 Write a matlab function that takes a vector as an input parameter and returns its average as an output parameter. Vector = [5, 0, 2, 4, 1, 6] Average is 3 HW9 Write a matlab function that takes a vector as an input parameter and returns its standard deviation and variance as output parameters. HW10 Write a matlab function that takes a vector as an input parameter and returns its median value as output parameter. Note: You think about length of vector with odd number and even number. You can use Wikipedia about Median rules.

they are function examples. i need solutions with MATLAB

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!