Solve using Matlab the problems:

One using the permutation of n objects formula

One using the permutation of r objects out of n objects

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


Help me pleaseeeee

Answers

Answer 1

Answer:

Explanation:

% 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: check

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

The answer is:

32760 permutations

1365 combinations

==================================================================================


Related Questions

an atom that gained an electron is called​

Answers

Answer:

Hey mate......

Explanation:

This is ur answer.....

When an atom gains/loses an electron, the atom becomes charged, and is called an ion.

Hope it helps!

Brainliest pls!

Follow me :)

An atom that gained an electron is called an ION.
Other Questions
how to write informal letter? A bag contains 3 red, 5 blue, and 4 white marbles. If a marble is drawn from the bag, not replaced, and another is drawn, what is the probability of selecting a white and then blue marble? If enough experimental data supports a hypothesis, then it:O A. Is proven 100% true.OB. Is falsified.OC. Is accepted as true until prolan false.OD. Becomes an Observational Law what are the problems of various employment sectors? Political Cartoon Analysis. Using you knowledge ofUS History, interpret the meaning of the politicalcartoon. Answer must be at least 3 completesentences.LASTING FREEDOM, PEACE S PROSPERITY COME FROM ADHERINS TO THE LAWS OF NATUREFEDERALSTATECOUNTYLOCALWe Be PeopleLAWS OF NATURE who claim that they are superior to all? The author of Passage 2 would likely criticize the author of Passage 1 for help! please!!!!!! look at photo :)) Which graph represents the function f(x)=|x1|3 ? A good manager: A. gives advice freely and frequently. B. is more result-oriented than relationship-oriented. C. has a judger mind-set and low self-awareness. D. schedules time for listening to employees each day. E. believes that listening too much is a sign of indecisiveness. Write a sentence containing the plural possessive form of the noun, parent. Jo bought a used car for $6000 and paid a 15% deposit. How much did he still have to pay? II. Choose the best answer.1. While I__________ along the road, I saw a friend of mine.A. had cycled B. have cycled C. cycled D. was cycling2. __________ I came to see her yesterday, she was reading a book.A. Before B. While C. After D. When3. Ann: What do you usually do on Saturdays? - Mary: ______________A. Id be sleeping all day B. I used to drive to workC. Im not doing anything D. I usually sleep until noon4. What ________ when Peter called last night?A. have you done B. are you doing C. were you doing D. did you use to do5. _________ your new teacher yet?A. Had you met B. Have you met C. Do you meet D. Are you meeting6. This is the second time I __________ that song. The first time was at the club last month.A. have heard B. heard C. hear D. will hear7. _________ here since 1999 when her parents moved from HCM city.A. Shes been living B. Shes living C. She was livingD. Shed live8. Listening to very loud music at rock concert ________ caused hearing loss in some teenagers.A. have B. has C. have been D. has been9. Lan: What do you think of horror films? - Nam ____________.A. Oh, my god B. I havent seen them for a long timeC. Oh, I find them really disgusting D. I just saw a film last night.10. A large number of staff in my office _________ English quite fluently.A. speak B. speaks C. is speaking D. has spoken11. Mary said that she _________ her homework since 8 oclock.A. did B. was doing C. has done D. had done12. Ive known him ________ I left college.A. when B. during C. until D. since13. He ______ for a job for some weeks before he found one.A. is looking B. looksC. would have been looking D. had been looking Saul is testing an installation and discovers a short circuit whats causing thisA.high current B.high voltageC.low resistanceD.low voltage trong cng mt nhit , lng nng lng trn mi mol ca cht kh no ln nhta) Kh n nguyn tb) Kh c t ba nguyn tc) Kh lng nguyn t The number of joules required to heat one gram of a substance one degree Celsius is _____.endothermictemperatureexothermicspecific heat capacity He cried loudly standing in the corridor. The given verb is ---------- What is the surface area of the right prism?92 ft246 ft248 ft270 ft2(will mark brainliest Factor 64a^3 -8b^3 Explain all steps. which statement is true