find and omit element from array
28 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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.
0 Commenti
Risposta accettata
madhan ravi
il 14 Mar 2019
Modificato: madhan ravi
il 14 Mar 2019
21;44
% ^
vv(ismember(vv,A))=[]
1 Commento
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Creating and Concatenating Matrices in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!