Shearch in two vectors the index of 2 different values and then intersect the output

I'm doing this
s=intersect(find(model.y==model.y(s)),find(model.x==model.x(s)+1));
This works I just wanna know if there's a fast way to do it.
Thank you

Answers (0)

This question is closed.

Asked:

on 11 Oct 2016

Closed:

on 20 Aug 2021

Community Treasure Hunt

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

Start Hunting!