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์ผ)
Paul Boddy
Paul Boddy 2020๋…„ 3์›” 2์ผ
๋Œ“๊ธ€: Steven Lord 2020๋…„ 3์›” 2์ผ
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
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!

Translated by