MATLAB: Good morning everyone can anyone answer me this question ? i have an error in the matlab code

matlab newbie

Attempted to access t_obs (2,1); index out of bounds because size (t_obs) = [1,3].
Has anyone ever encountered a problem like this if yes maybe it can give me the solution
THANKS

Best Answer

Your code is trying to access the value in the 2nd row, 1st column of t_obs. The problem is there is no data there because t_obs only has 1 row (but 3 columns).
Perhaps you meant to access the value in the first row, 2nd column instead?
Related Question