How to draw a circle in GNU Octave
Using the octave extra package octave-geometry you can use the function drawCircle as
drawCircle(x_position, y_position, radius)
- Download the package from https://octave.sourceforge.io/geometry/
- In Octave:
pkg install path_to_file.tar.gz
pkg load geometry
t = linspace(0,2*pi,100)';
circsx = r.*cos(t) + x;
circsy = r.*sin(t) + y;
plot(circsx,circsy);