Extract the bigger number of values from the previous one in an array
2 views (last 30 days)
I want to do this kind of loop
Data = rand(1,15);
if Data(i) < Data(i+1)
I suppose to get 15 values of X between 10 and 0 but I obtained this error
Index exceeds the number of array elements. Index must not exceed 15.
how can i proceed this loop into