find and omit element from array

25 visualizaciones (últimos 30 días)
NA
NA el 14 de Mzo. de 2019
Editada: NA el 14 de Mzo. de 2019
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.

Respuesta aceptada

madhan ravi
madhan ravi el 14 de Mzo. de 2019
Editada: madhan ravi el 14 de Mzo. de 2019
21;44
% ^
vv(ismember(vv,A))=[]

Más respuestas (0)

Categorías

Más información sobre Creating and Concatenating Matrices en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by