%in the name of God turn = randi(120) r1 = randi(20) r2 = randi(1200) speed = r1 + 1 / r2 tetha = 0:0.005:2*turn*pi; r =10; x = cos(tetha) * r + cos(speed*tetha) * 6; y = sin(tetha) * r + sin(speed*tetha) * 6; plot(x, y, 'r'); ylabel(['turn = ',num2str(turn),' speed = ', num2str(speed)]) axis equal; axis([-16.1 16.1 -16.1 16.1]) print -dpng figure.png
We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy. Accept Learn more