Hello, I want to replicate this Matlab code into Python
FILE(1:985,:) = [ ];
FILE is an nx2 array. n si quite large but it's not important. If I understand correctly, the code should remove from the FILE array all rows from first to 985th.
This is what I've come up with in Python
However it doesn't seem to work as I want, it removes only 19 rows from the array.
Why is that?
Here you can find the FILE array: https://pastebin.com/ it's a 40.001 x 2
The resulting FILE at the end should be 39.016 x 2 but I get 39.982 x 2
FILE(1:985,:) = [ ];
FILE is an nx2 array. n si quite large but it's not important. If I understand correctly, the code should remove from the FILE array all rows from first to 985th.
This is what I've come up with in Python
1 |
FILE = np.delete( FILE , FILE [ 0 : 985 ,...].astype( 'int' ), axis = 0 ) |
Why is that?
Here you can find the FILE array: https://pastebin.com/ it's a 40.001 x 2
The resulting FILE at the end should be 39.016 x 2 but I get 39.982 x 2