% In rectangular coordinates
theta=linspace(0,2*pi,200);radius=cos(5*theta);x=radius.*(cos(theta));y=radius.*(sin(theta));fill(x,y,'b') % when matlab run, only fill with color not odd flowers
axis('square')% In polar coordinates
p=Polar(theta,radius,'-b')patch(get(ph,'XData'), get(ph,'YData'), 'b')
MATLAB: How to fill with color a odd flower in a cartesian o polar coordinates
fill with color a odd flower in a cartesian o polar coordinates
Related Question
- Hi, I am finding area enclosed by convex hull using delayunaytriangulation,,,i have pasted the code…I just need someone to tell me..the area i got is right according to the code
- How to find the coordinates of a circle
- How to draw a filled semi circle?(like the one in the image) Thanks,
- How to color an angle histogram created by the ROSE function in MATLAB
- How to calculate the area enclosed by these 2 curves ?Image attached below….
- How to write a function that draws a regular polygon with n sides in a polar coordinate plot
Best Answer