How to solve this error index in position 1 exceeds array bounds?
22 views (last 30 days)
Cris LaPierre on 26 Jan 2022
The error is that your indexing of rows (specifically nt+t0_i), is resulting in a number higher that the total number of rows in your matrix. Here's a simple example:
A = rand(2,1)
% Your error