Quantcast
Channel: MATLAB Central Newsreader Recent Posts
Viewing all articles
Browse latest Browse all 19628

Re: how to plot 3/4 of a circle...

$
0
0
"bdr JK" <bdr.77@hotmail.com> wrote in message <kv8lva$14n$1@newscl01ah.mathworks.com>...
> Hi, I need your urgent help please, I have been asked to plot 3/4 of the below circle starting from point (10,0) and ending point (0,10).
> rho = 180/pi
> alpha = [0:pi/18:2*180]
> R = 10
> x1 = R * cos(alpha)+ 10
> y1 = R * sin(alpha)+ 10
>
> % ****************** Plotting *****************
> plot(x1,y1, 'go', 'LineWidth', 1, 'MarkerSize', 4)
> grid on
> axis equal
>
> axis ([-15 15 -15 15])
> Thanks in advance for the help
> axis ([-10 10 -10 10])

2 changes:
1. change your alpha to be in radians.
2. change your limits. right now you have the plotting a complete circle, so if you plot from 0 to 3/2*pi, you'll be good to go

Viewing all articles
Browse latest Browse all 19628

Trending Articles