Use polar to create a Butterfly curve plot

Screen Shot 2019-09-26 at 1.31.28 PM.png

1 comentario

Rik
Rik el 26 de Sept. de 2019
Your teacher also knows about this forum. Copy-pasting a ready-made solution is cheating, and you will probably not get it here.

Iniciar sesión para comentar.

Respuestas (1)

Bruno Teramoto
Bruno Teramoto el 26 de Sept. de 2019

0 votos

theta = [0:pi/32:8*pi];
r = exp(sin(theta)) - 2*cos(4*theta) - (sin((2*theta - pi)/24)).^5;
polar(theta,r,'--r')
title('butterfly curve')
xlabel('theta (\theta)')
ylabel('r')

Categorías

Preguntada:

el 26 de Sept. de 2019

Respondida:

el 26 de Sept. de 2019

Community Treasure Hunt

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

Start Hunting!

Translated by