Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: What am I missing here?
Replies: 5   Last Post: Jan 28, 2013 11:03 AM

 Search Thread: Advanced Search

 Messages: [ Previous | Next ]
 gautamsethi@gmail.com Posts: 27 Registered: 10/20/05
What am I missing here?
Posted: Jan 26, 2013 7:13 PM
 Plain Text Reply

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

Date Subject Author
1/26/13 gautamsethi@gmail.com
1/26/13 gautamsethi@gmail.com
1/26/13 Roger Stafford
1/26/13 gautamsethi@gmail.com
1/27/13 Roger Stafford
1/28/13 Steven Lord

© The Math Forum at NCTM 1994-2018. All Rights Reserved.