How to find a vector in a matrix?
    2 Ansichten (letzte 30 Tage)
  
       Ältere Kommentare anzeigen
    
Hi all,
Assume a vector:
v = [1:3:1000];
How can I find the number of columns of each value in the vector:
   x = [100, 280, 781, 925, 997];
in the bigger vector, v.
I tried:
y = find(x == v)
But no success! Any hint is greatly appreciated :)
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
				Mehr zu Creating and Concatenating Matrices 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!


