MATLAB: An Introduction with Applications
6th Edition
ISBN: 9781119256830
Author: Amos Gilat
Publisher: John Wiley & Sons Inc
expand_more
expand_more
format_list_bulleted
Textbook Question
Chapter 6, Problem 35P
The Sierpinski triangle can be implemented in MATLAB by plotting points iteratively according to one of the following three rules that are selected randomly with equal probability.
Rule 1:= xn+1= 0.5xn. yn+1 = 0.5yn
Rule 2: = xn+1=0.5xn+ 0.25, yn+1= 0.5yn+ (
Rule 3: = xn+1=0.5xn+0.5, yn+1= 0.5yn
Write a program in a script file that calculates the x and y
plots y versus x as individual points [use plot (x. y,’^’)]. Start with x1= 0 and y1= 0. Run the program four times with 10,100, 1,000, and 10,000 iterations.
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
An alloy manufacturer is investigating if they can improve the strength of one of their alloysby producing it at a lower temperature. To investigate that, they produce the alloy at twodifferent temperatures (high and low) and then measure the breaking strength of randomsamples of specimens from each. The following table represents the strength of the randomsamples at the higher and lower temperature, in units of 0.001-inch deflection.
Temp. Strength (0.001 inch)High 87 64 66 85 76 49 97 73 75 77 69 68 89 27 58 84Low 88 82 81 85 79 80 88 78 77 85 79 76
Do the results support the hypothesis that lowering the production temperature can improve thestrength of the alloy, with 95% confidence? (Hint: Don’t forget investigating variances. Use 98% confidence for that.)
A researcher is interested in studying how the number of books parents read to their children can influence a child's reading skills in kindergarten. She randomly assigns families with 5 year old children to either read their child 3 books per day, 2 book per day, or 1 book per day for the first 2 months of kindergarten. They then measure the children's reading ability.
How could the confound be fixed for this scenario? Be sure to tell me what technique you are using (constancy, repeated measures, randomization, elimination, or balancing), as well as how you would apply that technique to this specific scenario, and how that would fix this confound.
If the alleles A and B of the cystic fibrosis gene occur in a population with frequencies p and 1 - p (where pis between 0 and 1), then the frequency of heterozygous carriers (carriers with both alleles) is 2p(l - p). Which value of p gives the largest frequency of heterozygous carriers?
Chapter 6 Solutions
MATLAB: An Introduction with Applications
Ch. 6 - Prob. 1PCh. 6 - Given: d=6e=4f=2 . Evaluate the following...Ch. 6 - Given: v=[-2 4 1 0 2 1 2] and w=[2 50 1 2 1 3]....Ch. 6 - Use the vectors v and w from Problem 3. Use...Ch. 6 - Evaluate the following expressions without using...Ch. 6 - Use loops to create a 46 matrix in which the value...Ch. 6 - Write a program that generates a vector with 30...Ch. 6 - Write a program that asks the user to input a...Ch. 6 - Write a program that asks the user to input a...Ch. 6 - The daily high temperature (°F) in New York City...
Ch. 6 - The Pascal triangle can be displayed as elements...Ch. 6 - Fibonacci numbers are the numbers in a sequence in...Ch. 6 - The reciprocal Fibonacci constant ?is defined by...Ch. 6 - The value of p can be estimated from:...Ch. 6 - The value of p can be estimated from the...Ch. 6 - Write a program that (a) generates a vector with...Ch. 6 - A vector is given by x= [9 -1.5 13.4 13.3 -2.1 4.6...Ch. 6 - The Pythagorean theorem states that a2+ b2= c2....Ch. 6 - Write a MATLAB program in a script file that finds...Ch. 6 - A safe prime is a prime number that can be written...Ch. 6 - Sexy primes are two prime numbers that the...Ch. 6 - A Mersenne prime is a prime number that is equal...Ch. 6 - A perfect number is a positive integer that is...Ch. 6 - A list of exam scores (S) (in percent out of 100%...Ch. 6 - The Taylor series expansion for axis:...Ch. 6 - Write a MATLAB program in a script file that finds...Ch. 6 - The following are formulas for calculating the...Ch. 6 - Body mass index (BMI) is a measure of obesity. In...Ch. 6 - Write a program in a script file that calculates...Ch. 6 - Write a program that determines the change given...Ch. 6 - The concentration of a drug in the body CPcan be...Ch. 6 - One numerical method for calculating the cubic...Ch. 6 - Write a program in a script file that converts a...Ch. 6 - In a one-dimensional random walk, the position x...Ch. 6 - The Sierpinski triangle can be implemented in...Ch. 6 - The roots of a cubic equation a3x3+a2x2+a1x+a0=0...Ch. 6 - The overall grade in a course is determined from...Ch. 6 - A Keith number is a number (integer) that appears...Ch. 6 - The following MATLAB commands create a sine-shaped...
Knowledge Booster
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
- Calculate Pearson’s coefficient of skewness. Hence, describe the shape of thedistribution of the waiting time for counter A and B.arrow_forwardrk, Chapter 7.2-Google Chrome -llu A mylab.pearson.com/Student/PlayerHomework.aspx?homeworkld3623493716&questionld%3D21&flushed%-true&cld%36887268¢erwin=yes MAT 209: Statistics Zakaria Ahmed 04/08/22 1:23 AM E Homework: Homework, Chapter 7.2 HW Score: 31.94%, 7.67 of 24 points O Points: 0 of 1 Question 18, 7.2.31 > Save Use the given data to find the minimum sample size required to estimate a population proportion or percentage. Margin of error: seven percentage points; confidence level 95%; from a prior study, p is estimated by the decimal equivalent of 56% n = (Round up to the nearest integer.) Check answer Clear all ntact U Get more help - View an example Help me solve thisarrow_forwardLet X1 and X2be independent exponential random variables: fX1(x1) = e−x1 and fX2(x2) = e−x2 1arrow_forward
Recommended textbooks for you
- Calculus For The Life SciencesCalculusISBN:9780321964038Author:GREENWELL, Raymond N., RITCHEY, Nathan P., Lial, Margaret L.Publisher:Pearson Addison Wesley,Algebra & Trigonometry with Analytic GeometryAlgebraISBN:9781133382119Author:SwokowskiPublisher:CengageLinear Algebra: A Modern IntroductionAlgebraISBN:9781285463247Author:David PoolePublisher:Cengage Learning
- Elementary Linear Algebra (MindTap Course List)AlgebraISBN:9781305658004Author:Ron LarsonPublisher:Cengage LearningCollege Algebra (MindTap Course List)AlgebraISBN:9781305652231Author:R. David Gustafson, Jeff HughesPublisher:Cengage LearningBig Ideas Math A Bridge To Success Algebra 1: Stu...AlgebraISBN:9781680331141Author:HOUGHTON MIFFLIN HARCOURTPublisher:Houghton Mifflin Harcourt
Calculus For The Life Sciences
Calculus
ISBN:9780321964038
Author:GREENWELL, Raymond N., RITCHEY, Nathan P., Lial, Margaret L.
Publisher:Pearson Addison Wesley,
Algebra & Trigonometry with Analytic Geometry
Algebra
ISBN:9781133382119
Author:Swokowski
Publisher:Cengage
Linear Algebra: A Modern Introduction
Algebra
ISBN:9781285463247
Author:David Poole
Publisher:Cengage Learning
Elementary Linear Algebra (MindTap Course List)
Algebra
ISBN:9781305658004
Author:Ron Larson
Publisher:Cengage Learning
College Algebra (MindTap Course List)
Algebra
ISBN:9781305652231
Author:R. David Gustafson, Jeff Hughes
Publisher:Cengage Learning
Big Ideas Math A Bridge To Success Algebra 1: Stu...
Algebra
ISBN:9781680331141
Author:HOUGHTON MIFFLIN HARCOURT
Publisher:Houghton Mifflin Harcourt
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