Question
1 a- Write a matlab function that takes 2 numbers as input parameters and returns their combination as an output parameter. Example: 5! / ((5-2)!
1
a- 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 b Write a matlab function that takes 2 numbers as input parameters and returns both its permutation and its combination as output parameters.
c 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 d Write a matlab function that takes a vector as an input parameter and returns its standard deviation and variance as output parameters. Example: Permutasyon = 5! / (5-2)! = 20 Combinasyon = 5! / ((5-2)! * 2!) = 10
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started