How to plot a semi-circle?

Casey asked on 6 Feb 2012
Latest activity: Answer by Wayne King on 6 Feb 2012

How to plot a semi-circle and if I want just the curve of of the semi-circle and the radius of the circle is 500m?

Thanks

0 comments

Tags

Products

    1 answer

    Wayne King answered on 6 Feb 2012
    Accepted answer
          theta = 0:.01:pi;
          y = 500*exp(1j*theta);
          plot(real(y),imag(y));
          axis([-750 750 -750 750]);
          grid on;

    3 comments

    Casey on 8 Feb 2012

    Thanks, but what if I want to slant the semicircle by 30 degree? is it possible?

    Elige Grant on 8 Feb 2012

    theta = (0:.01:pi)+30*pi/180;

    Casey on 8 Feb 2012

    Thanks,If I want to shift the origin from (0,0) to (100,100)? Which command must I use?

    Contact us at files@mathworks.com