How to delete some specific rows of a column vector simultaneously?
7 views (last 30 days)
Walter Roberson on 30 Jun 2021
ARRAY(ARRAY==VALUE) = ; %delete if array is exactly value
NEW_ARRAY = ARRAY(ARRAY~=VALUE) %create new vector without disturbing old one
ARRAY(ismember(ARRAY, [LIST OF VALUES])) =  %delete if value is any of the ones in the list of values