Matlab Remove Elements from Array
Removing elements based on index
A = 1:10 ; % 1-D array
A =
1 2 3 4 5 6 7 8 9 10
ind = [1 4 7] ; % indices to be removed
A(ind) = [] ; % remove
A =
2 3 5 6 8 9 10
Based on Matlab Central.
Programming
Matlab
]