MATLAB: An Introduction with Applications
MATLAB: An Introduction with Applications
5th Edition
ISBN: 9781118629864
Author: Amos Gilat
Publisher: WILEY
bartleby

Videos

Textbook Question
Book Icon
Chapter 7, Problem 32P

In a lottery the player has to select several numbers out of a list. Write a user-defined function that generates a list of n integers that are uniformly distributed between the numbers a and b. All the selected numbers on the list must be different. For function name and arguments, use x—lotto (a, b, n) where the input arguments are the numbers a and b, and n, respectively. The output argument x is a vector with the selected numbers.

(a) Use the function to generate a list of seven numbers from the numbers I through 59.

(b) Use the function to generate a list of eight numbers from the numbers 50 through 65.

(c) Use the function to generate a list of nine numbers from the numbers -25 through -2.

Blurred answer
Students have asked these similar questions
1 No. 2 3 4 Binomial Prob. X n P Answer 5 6 4 7 8 9 10 12345678 8 3 4 2 2552 10 0.7 0.233 0.3 0.132 7 0.6 0.290 20 0.02 0.053 150 1000 0.15 0.035 8 7 10 0.7 0.383 11 9 3 5 0.3 0.132 12 10 4 7 0.6 0.290 13 Poisson Probability 14 X lambda Answer 18 4 19 20 21 22 23 9 15 16 17 3 1234567829 3 2 0.180 2 1.5 0.251 12 10 0.095 5 3 0.101 7 4 0.060 3 2 0.180 2 1.5 0.251 24 10 12 10 0.095
step by step on Microssoft on  how to put this in excel and the answers please   Find binomial probability if: x = 8, n = 10, p = 0.7 x= 3, n=5, p = 0.3 x = 4, n=7, p = 0.6 Quality Control: A factory produces light bulbs with a 2% defect rate. If a random sample of 20 bulbs is tested, what is the probability that exactly 2 bulbs are defective? (hint: p=2% or 0.02; x =2, n=20; use the same logic for the following problems) Marketing Campaign: A marketing company sends out 1,000 promotional emails. The probability of any email being opened is 0.15. What is the probability that exactly 150 emails will be opened? (hint: total emails or n=1000, x =150) Customer Satisfaction: A survey shows that 70% of customers are satisfied with a new product. Out of 10 randomly selected customers, what is the probability that at least 8 are satisfied? (hint: One of the keyword in this question is “at least 8”, it is not “exactly 8”, the correct formula for this should be = 1- (binom.dist(7, 10, 0.7,…
Kate, Luke, Mary and Nancy are sharing a cake. The cake had previously been divided into four slices (s1, s2, s3 and s4).  What is an example of fair division of the cake       S1 S2 S3 S4 Kate $4.00 $6.00 $6.00 $4.00 Luke $5.30 $5.00 $5.25 $5.45 Mary $4.25 $4.50 $3.50 $3.75 Nancy $6.00 $4.00 $4.00 $6.00
Knowledge Booster
Background pattern image
Statistics
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, statistics and related others by exploring similar questions and additional content below.
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Algebra & Trigonometry with Analytic Geometry
Algebra
ISBN:9781133382119
Author:Swokowski
Publisher:Cengage
Graph Theory: Euler Paths and Euler Circuits; Author: Mathispower4u;https://www.youtube.com/watch?v=5M-m62qTR-s;License: Standard YouTube License, CC-BY
WALK,TRIAL,CIRCUIT,PATH,CYCLE IN GRAPH THEORY; Author: DIVVELA SRINIVASA RAO;https://www.youtube.com/watch?v=iYVltZtnAik;License: Standard YouTube License, CC-BY