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....
Using MATLAB to solve the problem: The USS Missouri is a battleship with 16-inch guns. A...
Using MATLAB to solve the problem: The USS Missouri is a battleship with 16-inch guns. A projectile is fired from one of the guns at an angle of elevation ϴ = 42 degree from the sea-level with a velocity Vo = 820 m/s. Neglecting air resistance and assuming the projectile is fired across the sea, using Matlab determine: (a) How much time the projectile will be in flight (tf). (b) How far away from the battleship the projectile will hit...
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...
I don't understand the difference between these two problems. Problem #1 has you 4 P 4...
I don't understand the difference between these two problems. Problem #1 has you 4 P 4 / 4 = 4!/4 because I guess you can rotate it 4 times and it'd still be in the same arrangements as each of those women still have the same neighbors during those 4 rotations. Please correct me if I am wrong. However, in Problem #2, this time has 3 boys and 4 girls sitting at a circular table, to which boys have to...
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....
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT