how to find a vector's location in another vector
3 views (last 30 days)
Show older comments
yaniv friedman
on 17 May 2017
Commented: yaniv friedman
on 17 May 2017
Hi.
a is a vector sized 1xn A is a vector sized 1xN N>n
how can i find the index of A at which a is located (lets say, the index where a begins)?
for example = a = [1 2 3 4 ]; A = [ 0 4 2 3 1 2 3 5 1 2 3 4 5 6 ] ;
findIndex(a,A) = 9
Thanks!
0 Comments
Accepted Answer
More Answers (0)
See Also
Categories
Find more on Logical in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!