Borrar filtros
Borrar filtros

Why am I not getting the graph I want?

3 visualizaciones (últimos 30 días)
Muhtasim Ahmed
Muhtasim Ahmed el 14 de Sept. de 2018
Respondida: Image Analyst el 14 de Sept. de 2018
I am trying to use polar coordinate and graph the top part of a heart but this is what I am getting.
Here is my code:
polaraxes;
theta= linspace(0,2*pi);
hold on
for k= 1:5
r1=theta.^(2/3)+sqrt(k-theta.^2);
polarplot(theta,r1);
end
hold off

Respuesta aceptada

Image Analyst
Image Analyst el 14 de Sept. de 2018
I don't have time to debug your code but for what it's worth, attached is my heart drawing demo.

Más respuestas (0)

Categorías

Más información sobre Animation en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by