MATLAB: Having Trouble with While loop not renewing a value

while loop

h

Best Answer

A good idea would be to not use a while loop and give one or two data points as a check if all the steps are behaving as expected. Once this is satisfactory put it in the while loop.
Related Question