I am attempting to dynamically create a list that will serve as labels for a chart. The list will be based on a name which the user inputs for a list and the range of elements from the list. I can’t seem to get the While loop to work just right. What am I doing wrong? What I have so far is:
seq1 = {52.000, 52.289, 39.000,
0.000, -10.121, -19.000, -22.000, -28.203, -18.000, -6.000, -5.615,
0.000, 0.000, 1.770, 2.000, 4.000, 3.903,
2.000, -4.000, -3.729, -3.000, 4.000, 20.378, 20.000, 47.000,
74.958, 58.000, 54.000, 68.563, 40.000};
window = 10;
offsetwindow = 5;
wordseqname = "Lab1";
stopper = Length[Partition[seq1, window, window]]; st = 0; While[
st <= stopper,
outlabel =
wordseqname <> "_(" <> st*window + 1 <> "-" <> st*window + 1 +
window; st++]
The output needs to be:
outlabel={"Lab1 (1-10)","Lab1 (11-20)","Lab1 (21-30)"}