Skip to content
Prev 139478 / 398506 Next

Selecting elements in vector

Hi

Consider the following code
I want to select all elements in x which are equal to 1, 2 or 3.

I know that I could use
to obtain the values, but in my analysis, the y-vector is thousands of
elements long.

Is there any way, that I can do that easily?

Thanks

Rainer