How to make a polar plot function curve and not rigid?
조회 수: 3 (최근 30일)
이전 댓글 표시
Hello,
I'm not sure why but when I polarplot the graph is very rigid. does anyone know how to change it? I attached a picture and below is what i'm using;
theta = 0*pi: 0.1*pi: 2*pi;
r = 5*cos(4*theta);
polarplot(theta, r)

댓글 수: 0
답변 (1개)
Amir Xz
2018년 9월 13일
Steps are so large.
theta = 0*pi: 0.01: 2*pi;
댓글 수: 2
Walter Roberson
2018년 9월 14일
0*pi: 0.1*pi: 2*pi is only 21 points, and it needs to cover all 8 nodes in that, so it averages less than 3 points per node. You need to use samples that are closer together, or else you need to interpolate between those 21 points (which could give you a quite misleading idea of what the curve looks like.)
참고 항목
카테고리
Help Center 및 File Exchange에서 Polar Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!