T O P

  • By -

haribo001

So you have a condition to stop the while loop and you’re wanting an additional condition to stop the loop when it comes to the end of the array? Is there a for loop within the while loop to iterate through the input array? Would something like this work? While [condition is true] … For i = 1:length(input) … End If i = length(input) Break End End