how can i fill this shape?
조회 수: 1 (최근 30일)
이전 댓글 표시
hi i need to fill this shape but i can't the shape is made with a '*' so the fill function doesn't really help me with this any suggestions?
my code:
alpha=1;
xi=0.5;
l=4;
R=2000; % the resolution
phi=1:R;
for i=1:R;
r(i)=alpha*(1+xi*cos(l*phi(i)));
end
[X,Y]=pol2cart(phi,r);
plot(X,Y,'.')
axis equal
grid on
title('\bf The Shape')
xlabel('X Coordinate')
ylabel('Y Coordinate')
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Line Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!