Question

Solve using Matlab three problems: One problem using the combination formula One problem using the permutation...

Solve using Matlab three problems:

One problem using the combination formula

One problem using the permutation of n objects formula

One problem using the permutation of r objects out of n objects formula

- please make up three different questions for the three different commands

- screenshots of everything on Matlab is needed

Homework Answers

Answer #1

Sol:

MAT LAB Code

% Clears variables and screen
clear; clc

% Asks user for input
n = input('Total number of objects: ');
r = input('Size of subgroup: ');

% Computes and displays permutation according to basic formulas
p = 1;
for i = n - r + 1 : n
p = p*i;
end
str1 = [num2str(p) ' permutations'];
disp(str1)

% Computes and displays combinations according to basic formulas
str2 = [num2str(p/factorial(r)) ' combinations'];
disp(str2)

Example:

How many permutations and combinations can be made of the 15 alphabets, taking four at a time?

The answer is:

32760 permutations
1365 combinations

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Solve using Matlab three problems: One problem using the combination formula One problem using the permutation...
Solve using Matlab three problems: One problem using the combination formula One problem using the permutation of n objects formula One problem using the permutation of r objects out of n objects formula You can pick these problems from the textbook or you can make up your own questions.
Basic probability question (combination/permutation). Please explain the details and use basic combination/permutation formula as needed. Question:...
Basic probability question (combination/permutation). Please explain the details and use basic combination/permutation formula as needed. Question: A father hides 13 spades from a regular 52 deck cards in his room for his 6 sons who are supposed to find them. Suppose all 13 spade cards will be found by them. It's possible that the first son finds all 13 cards. Or the first son finds the finds 1, the second son finds 3, third son finds the rest and fourth,...
Part 2: Solve the following problems in MATLAB 1. Fill in the function E = myElim(A,...
Part 2: Solve the following problems in MATLAB 1. Fill in the function E = myElim(A, r_entry, r_pivot, c) to create an m by m elimination matrix ??. Remember that an elimination matrix looks like an identity matrix with one extra entry of ?? in row r_entry and column r_pivot. 2. Fill in the function M = myMult(A, c_pivot) to create an m by m multiplier matrix ??. Remember that a multiplier matrix looks like an identity matrix with the...
using Matlab 1) use the if/else structure to solve these problems (a,b) a) write a programme...
using Matlab 1) use the if/else structure to solve these problems (a,b) a) write a programme that reads an integer from the user. then your program should display a message whether the integer is even or add. b) many solid-fuel rocket motors consist of three stages. Once the first stages burns out, it separates from the missile and the second stage lights. then the second stages burns out and separate and the third stage light.Finally, once the third stages burns...
Please use the below formula in Excel for developing the combination calculation i.e., the number of...
Please use the below formula in Excel for developing the combination calculation i.e., the number of ways of choose n numbers k at a time…The Excel formula is =COMBIN(n,k). This will tell you the number of combinations given a number n chosen k at a time. For instance, if you calculated in Excel =COMBIN(49,5) …this will calculate the number of combinations of numbers 1 thru 49 chosen 5 at a time. For instance, 1,2,3,4,5 would be one of those combinations....
At Pizza Hut, a customer wants to buy some pizza. How many different ways can a...
At Pizza Hut, a customer wants to buy some pizza. How many different ways can a customer buy 4 different types of pizzas out of 11? a. For this example, what formula will we need to use? Permutation : n P r = n ! ( n − r ) ! Perumtation Rule #2 : n ! r 1 ! ⋅ r 2 ! ⋅ r 3 ! ⋅ ... ⋅ r p ! Fundamental Counting Rule : k 1...
Solve the next 3 problems: 1) A tool manufacturing plant buys screws from three different suppliers...
Solve the next 3 problems: 1) A tool manufacturing plant buys screws from three different suppliers A. B and C. 50% is purchased from B and C in equal parts, while the rest is acquired from A. If the percentage of defective screws for A, B and C is 5%, 10% and 12%, respectively. What is the probability that a defective screw will be sold by B? 2) If two cards are drawn from a conventional 52-card deck, what is...
Solve the first 3 questions three ways: using the PV formula “long-hand;” conceptually or short essay;...
Solve the first 3 questions three ways: using the PV formula “long-hand;” conceptually or short essay; using the financial calculator. Try variants of each: e.g., given the price, solve for ytm. Notice the bond’s “risk class” is described in three different ways (in bold) in these questions. What is the price of a 2-year bond with a coupon rate of 12% and an interest rate of 10%? Face value is $1,000. There are six months before the first interest payment....
Solve this confidence interval problem using a confidence level for that specific classmate’s problem. Make sure...
Solve this confidence interval problem using a confidence level for that specific classmate’s problem. Make sure that you use appropriate terminology to state the problem and explain your solution. I asked 20 of these ladies "What age were you when you gave birth to your first child?" I got a range of ages which are: 22, 26, 17, 15, 18, 19, 22, 23, 32, 25, 35, 37, 40, 18, 21, 27, 30, 22, 19, 29. I want the confidence interval...
A study of a new mathematics teaching methodology tested​ students' ability to solve word problems. This...
A study of a new mathematics teaching methodology tested​ students' ability to solve word problems. This table shows how students using the new method and the traditional method performed. What do you​ conclude? (Assume the conditions for inference are met. Assume a significance level of 0.01​.) Math Problem n Mean SD New 311 56.9 32.3 Traditional 265 54.3 28.7 Compute the test statistic. t=___ ​(Round to two decimal places as​ needed.) Find the​ P-value. The​ P-value is ____. ​(Round to...