I draw a circle with s1=4 points.
I have this code
t1 = 0:(pi/(5*s1)):2*pi;
x1unit = r1 * cos(t1) + x1;
y1unit = r1 * sin(t1) + y1;
plot(x1unit, y1unit, 'b', x1, y1, 'ok');
plot(a1, b1, 'o');
if I want to add one point right in the middle, between to other points(a1,b1) I use this code:
So, I have one midpoint [s1=4, (1-2,2-3,3-4,4-1) ] . I want more midpoints, for example three or n,if it is possible .
If I want 3 points i use this code
but I don't like this way. Maybe there is more practical way with less code.
My plot is the following picture.Ignore the inner circle. I would like 9 green points,instead one.
like the 3 blue dots,like in the picture:
How I have 9 points which equidistant between the s1 points ???
Thanks in advance