Why am I not getting the graph I want?
조회 수: 3 (최근 30일)
이전 댓글 표시
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
댓글 수: 0
채택된 답변
Image Analyst
2018년 9월 14일
I don't have time to debug your code but for what it's worth, attached is my heart drawing demo.
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Animation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!