MATLAB: Loop is not working. My while loop is not working. output is initial values here. Can anyone help?

loop not working

Best Answer

C is not a vector/matrix it is a scalar. C(counter) can not work for any value of counter >1.
C(0.1) will not work either.
Related Question