Thanks for reading my question.
I have a for loop that generates a vector "H" that is a different size every time the loop runs. I am trying to save "H" with a different name every time in order to find the smallest "H" produced by the loop and eventually interpolate all the data onto the grid of the shortest "H" vector.
This is my code
for n = B2(1:end,:)
H=find(time_dec > m(p) & time_dec < n(p));
B1 and B2 mark the start and stop times (around 3-5, differing each time) that I am cutting H from. Therefore, I make 3-5 different H vectors every time that mark different time slices from a massive data set, because I am only looking at variables within those time frames. I can clarify any of this if that helps.
Does anyone know how I can save a new vector every time I create an H vector? Thank you so much!!!