I am coverting a Matlab code into python. I got this error :
a[n_max] = 0 IndexError: index 9654 is out of bounds for axis 0 with size 9654
While