A possible root cause of the issue can be repeating time values in the experimental data which get indirectly fed to 'OutputTimes' within Configuration Parameters when called by Simulink.
You may check non unique time values in data by executing the following command:
To cause the error, this value might be smaller than the length of your experimental data.
- Approach to removing duplicate entries:
We can average the values of repeating column entries and get a unique array of elements. I would suggest backing up your experimental data before doing the matrix operations below.
array = [1 10; 2 20; 3 30; 4 40; 4 50; 4 60; 5 70; 6 80; 7 90; 7 100; 8 110];
[C,ia,idx] = unique(array(:,1),'stable');
val = accumarray(idx,array(:,2),,@mean);