MATLAB Answers

0

can this plotted circle be filled? it needs to have a solid color

Asked by Pedro Galindo on 20 Nov 2017
Latest activity Answered by Image Analyst
on 20 Nov 2017

xCenter = 0; yCenter = 0; thetaValue = 0:360; radiusJoint = 1;

jointZerox = radiusJoint*cosd(thetaValue)+xCenter; jointZeroy = radiusJoint*sind(thetaValue)+yCenter;

plot(jointZerox,jointZeroy,'b')

  0 Comments

Sign in to comment.

Tags

3 Answers

Answer by Star Strider
on 20 Nov 2017

Use fill:

xCenter = 0;
yCenter = 0;
thetaValue = 0:360;
radiusJoint = 1;
jointZerox = radiusJoint*cosd(thetaValue)+xCenter;
jointZeroy = radiusJoint*sind(thetaValue)+yCenter;
fill(jointZerox,jointZeroy,'b')
axis equal

  0 Comments

Sign in to comment.


Answer by Chad Greene
on 20 Nov 2017

You can use my circles function. Just specify, x,y location, radius, and facecolor.

  0 Comments

Sign in to comment.


Answer by Image Analyst
on 20 Nov 2017

You might want to take a look at viscircles().

  0 Comments

Sign in to comment.