Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Tutorialspoint

flower19

%in the name of God
turn = 70;
format long

r1 = randi(20)
r2 = randi(1200)
speed = r1 + 1 / r2;

tetha = 0:0.003:2*turn*pi;
r =10;

x = cos(tetha) * r + cos(speed*tetha) * 5.5;
y = sin(tetha) * r + sin(speed*tetha) * 5.5;
plot(x, y, 'k');

ylabel( ['r1 = ',num2str(r1),' , r2 = ',num2str(r2)] )
axis equal;
axis([-16.1 16.1 -16.1 16.1])
print -dpng figure.png

Advertisements
Loading...

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.