MATLAB: Find and omit element from array

find and omit element from array

vv=(1:100)'
A=[3;8;21;44;60;79;99]
f_vv=find(vv==A);
vv(reshape(f_vv,length(f_vv),1))=[];
I got this error
Dimensions of arrays being concatenated are not consistent.

Best Answer

21;44
% ^
vv(ismember(vv,A))=[]
Related Question