This seems like a basic question, but I can't seem to figure it out.
I have data for multiple spirals and I want all the x,y and z co-ordinates for each spiral in seperate arrays. I cannot preallocate because I am not aware of the size before running the code.
Would really appreciate any help on how to save my co-ordinates for each spiral in seperate arrays. The code is pasted below
clc; clear; close all
spirals = (1:10:61);
dy = max(spirals);
indent = linspace(-255+dy, 255-dy,4);
num = 1:1:7;
layerheight = [1 2 4 5];
for rows = 1:length(spirals)
center = -250 + (spirals(rows))*num(rows);
r = spirals(rows);
xlabel('\it Increasing Radius \rightarrow')
ylabel('\it Increasing Layer Height \leftarrow')