Date: Jan 21, 2013 10:39 AM
Author: Iris
Subject: problem finding a value

hello!
i have a vector like this:

x_x =

1.0e+002 *

Columns 1 through 3

1.000000000000000 -0.953406571178785 -1.542839603993645

Columns 4 through 5

-2.146721794700071 -3.268216911140570

now i say:
if any(x_x < 2.5) && any(x_x > -5)
do something: A
else
do something else: B
end

why does the program always do A??
i just want it to do A if some value inside x_x is between -5 and 2.5!
i really dont understand....

any help is appreciated..
thank you in advance