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

You can pick these problems from the textbook or you can make up your own questions.

Homework Answers

Answer #1

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

If you have any doubts please comment and please don't dislike.

PLEASE GIVE ME A LIKE. ITS VERY IMPORTANT FOR ME.

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 - please make up three different questions for the three different commands - screenshots of everything on Matlab is needed
Create your own original problem where you can use the permutation formula to find the number...
Create your own original problem where you can use the permutation formula to find the number of ways to arrange some items out of a larger group. i. In 2-3 sentences, write a description of the problem, including the number of items altogether and the number of items that need to be arranged. ii. Show how to use the permutation formula to solve the problem. Show all steps necessary to find the answer. iii. Write a sentence to explain the...
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...
Identifying Permutations and Combinations Directions:Identify each situation below as describing a permutation, combination, or neither. Then...
Identifying Permutations and Combinations Directions:Identify each situation below as describing a permutation, combination, or neither. Then evaluate, simplifying completely. 1.I need to pick four students to represent our class on student council. In how many ways can I do this from our class of seven students? 2.I need to pick three different students to serve as the class president, secretary, and treasurer. In how many ways can I do this from our class of seven students?3.I need to pick five...
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...
write test problems about shares purchase . (not questions, but full problems). Come up with your...
write test problems about shares purchase . (not questions, but full problems). Come up with your own story for the accounting problem...feel free to be creative...and utilize one or more of the concepts from class. ALSO, make sure that you answer the problem(s) you have created as well.
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....
Basically, you are being asked to write two test problems. (not questions, but full problems). Come...
Basically, you are being asked to write two test problems. (not questions, but full problems). Come up with your own story for the accounting problem...feel free to be creative...and utilize one or more of the concepts from class. ALSO, make sure that you answer the problem(s) you have created as well.
Make up a 2D inelastic collision problem, and solve it (two objects stick together) .Your problem...
Make up a 2D inelastic collision problem, and solve it (two objects stick together) .Your problem needs to be unique, so use masses such as 26 kg for one, 590 kg for the other, etc. They both must be moving initially, and also make sure that one of the objects’ velocity is diagonal. One can be moving in the x direction initially, but the other must have an x and y component to it’s initial velocity.
Each question will be labeled as a calculator or formula question. For calculator problems , you...
Each question will be labeled as a calculator or formula question. For calculator problems , you are to label and input all the variables of interest: N, I/Y, PV, PMT, FV (and Begin mode if you switch). the unknown variable should be indicated by a ? symbol. Once solved, rewrite the variable identifier with the correct answer. For the formula problems, set up the problem and solve. Be sure to show each step for credit. Answer each question in BB...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT