How to find a vector in a matrix?

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 :)

More Answers (0)

Categories

Find more on Aerospace Blockset in Help Center and File Exchange

Tags

Asked:

M G
on 4 Sep 2013

Commented:

on 25 Dec 2018

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!