Python Delete Last Element Of Array Matlab Simulink