What is strange about this problem is that the code runs perfectly at different "n" values, but when "n" is 104 and the code runs, it calculates the value of "i" as 104 and does not calculate the next value.
This is not the code I wrote, but I just wanted to give an example.
n=105;
for i=1:1:n
T(i)=300;
end
T should contain 105 arrays, but the value of "i" was calculated as 104 by code. T(105) is not available in the workspace data. And, it gives an error message (index exceeds the number of array elements. The index must not exceed 104). Any ideas?
Another example;
n=135;
for i=1:1:n
T(i)=300;
end
T(135) is available in the workspace data and T(135)=300. It doesn't give an error.