Numpy Access Last Element Of Array Matlab Plot