So I have 50 different 1 column vectors that I need to extract certain data from each vector. I need to define a new vector when t(i+1) < t(i). So there is one drop in my vector and I need to be able to find it, then create a new vector with only the information from that point until the end of the vector without overwriting the other vector. Each of the 50 vectors I have all have a different number of rows and this drop point of my data all happens in a different spot too. How do I write a for/if loop to find this new set of data?
MATLAB: Extracting certain data from multiple column vectors
extracting datafor loop
Best Answer