How can i find a certain vector in a matrix?
12 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Lukas Nuschele
am 2 Dez. 2019
Kommentiert: Lukas Nuschele
am 3 Dez. 2019
Hey there,
I have a 3x370 Matrix and I want to find a 3x1 vector within the matrix.
Output should be the Column number of the 3x1 vector in the matrix.
I´be really glad if someone can help me :)
Greets Lukas
0 Kommentare
Akzeptierte Antwort
David Hill
am 2 Dez. 2019
Transpose and use ismember(A,B,'rows')
A=A';370x3
B=B';1x3
x=find(ismember(A,B,'rows'));%will give you the column numbers of A that match B
Weitere Antworten (1)
Siehe auch
Kategorien
Mehr zu Logical finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!