The Sierpinski triangle can be made in MATLAB by plotting points iteratively according to one of the following three rules that are selected randomly with equal probability. Rule 1: ๐ฅ๐+1 = 0.5๐ฅ๐ ๐ฆ๐+1 = 0.5๐ฆ๐ Rule 2: ๐ฅ๐+1 = 0.5๐ฅ๐ + 0.25 ๐ฆ๐+1 =
์กฐํ ์: 11 (์ต๊ทผ 30์ผ)
์ด์ ๋๊ธ ํ์
The Sierpinski triangle can be made in MATLAB by plotting points iteratively according to one of the following three rules that are selected randomly with equal probability.
Rule 1: ??+1 = 0.5?? ??+1 = 0.5??
Rule 2: ??+1 = 0.5?? + 0.25 ??+1 = 0.5?? + โ3 4
Rule 3: ??+1 = 0.5?? + 0.5 ??+1 = 0.5??
Write a MATLAB program that calculates the x and y vectors and then plots y versus x as individual triangular points. Start with x1=0 and y1=0. Run the program four times with 10, 100, 1000, and 10,000 iterations and have each figure show. Format the plots properly.
๋๊ธ ์: 1
Steven Lord
2020๋
3์ 2์ผ
This sounds like a homework assignment. If it is, show us the code you've written to try to solve the problem and ask a specific question about where you're having difficulty and we may be able to provide some guidance.
If you aren't sure where to start because you're not familiar with how to write MATLAB code, I suggest you start with the MATLAB Onramp tutorial (https://www.mathworks.com/support/learn-with-matlab-tutorials.html) to quickly learn the essentials of MATLAB.
If you aren't sure where to start because you're not familiar with the mathematics you'll need to solve the problem, I recommend asking your professor and/or teaching assistant for help.
๋ต๋ณ (0๊ฐ)
์ฐธ๊ณ ํญ๋ชฉ
์นดํ ๊ณ ๋ฆฌ
Help Center ๋ฐ File Exchange์์ Programming์ ๋ํด ์์ธํ ์์๋ณด๊ธฐ
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!