having trouble creating fractal picture

조회 수: 1 (최근 30일)
Joseph
Joseph 2014년 4월 3일
댓글: Joseph 2014년 4월 3일
Xsubk + 1 = Ysubk*(1 + sin(.7Xsubk) - 1.2*sqrt(|Xsubk|)
Ysubk +1 = .21 - Xsubk
for k = 1:1:19999
I'm not sure how to initiate plotting these points. I don't know how to deal with the subscripts "subk". Any help would be greatly appreciated. Thank You
  댓글 수: 1
Joseph
Joseph 2014년 4월 3일
Figured it out:
x(1)=0;
y(1)=0;
for k = 1:1:19999
x(k+1) = y(k)*(1+sin(.7*x(k))) - 1.2*sqrt(abs(x(k)));
y(k+1) = .21 - x(k);
end
plot(x,y,'o','markersize',2)

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Fractals에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by