In Matlab you can draw a circle by just specifying the center and the radius like this:
R = 10;
Center = [5,8];
circle(Center,R,1000,'b-');
hold on
plot(Center(1),Center(2),'g.')
The same code for MatLab won’t work for GNU Octave. What octave code would draw a circle given a center x,y coordinates and a radius?
1 Answer