Date: Jan 26, 2013 7:13 PM
Author: gautamsethi@gmail.com
Subject: What am I missing here?

Folks, this is driving me nuts! Can someone explain what may be going on?

>> X = [0 .1 .2 .3 .4]

X =

0 0.1000 0.2000 0.3000 0.4000

>> X(4) == .3

ans =

1

>> Y = [0:.1:.4]

Y =

0 0.1000 0.2000 0.3000 0.4000

>> Y(4) == .3

ans =

0

>> intersect(X,Y)

ans =

0 0.1000 0.2000 0.4000

>> X(2) == .1

ans =

1

>> Y(2) == .1

ans =

1