I wrote codes in matlab to solve an equation. Since I have a lot of data and for each data my output changes I decided to give it a while end loop for subscripted assignment.
For example If I have to solve x^2 + a = 0. where a are my different data points. Instead of putting 'a' manually, I connected 'a' with excel file and for each value of a, I stored the value in x in another variable say 's' and I am expecting that it should give different values of 's' for different 'a' ( which it should give). But, I am getting the wrong output in the sense that it is computing only initial values rightly. For other values of a it is giving answer same as that of initial values.