Can compare between vector and array
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
huda nawaf
il 17 Ago 2022
Commentato: huda nawaf
il 17 Ago 2022
Hello,
Can matching between vector and array where I have vector and large size of array, for example:
x with length 5 :x=[1 2 3 4 5];
A with size 3*5 A=[2 3 4 6 7; 10 11 1 2 3; 1 2 3 4 5];
Thanks
1 Commento
James Tursa
il 17 Ago 2022
What do you want for output? A list of row numbers in A that match x? Or ...?
Risposta accettata
James Tursa
il 17 Ago 2022
Modificato: James Tursa
il 17 Ago 2022
Does this do what you want? Finds the row numbers in A that match x.
find(all(A==x,2))
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Matrices and Arrays 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!