I want the below spirals to be evenly spaced (in both x and y axes). I am hoping distance between the rows and columns of the helical spirals to be the same, while each center will lie on the same line. I am not sure how to use MATLAB to calculate that for me. The radius of the helical spirals will change and I think there is way to use MATLAB to evenly space them out rather than manually calculating the distance of them.
The axes will always be constrained from -255 to 255, so only radius stays the same.
I pasted the code and what the spirals look from the xy axes
I am hoping the spacing between each row would be constant so that the spirals lie on the same line
clc; clear; close all
height = 250;
spirals = (1:10:61);
num = 1:1:7;
for rows = 1:length(spirals)
center = -250 + (spirals(rows))*num(rows);
indent =255 - (columns*30);
r = spirals(rows);
xlabel('\it Increasing Radius \rightarrow')
ylabel('\it Increasing Layer Height \leftarrow')