colon operator : problem

Hi, I just found this in ML2009b, that was confusing some calculations I was performing
basically if I create a vector with the colon operator : like this:
idxT = -.5 : 0.02: 1;
I get that p.e. on index 31 I have 0.1: >> idxT(31)
ans = 0.1
BUT if I test it I get this: >> idxT(31)==0.1
ans =
0
What can I do to solve this problem?

 Respuesta aceptada

Sean de Wolski
Sean de Wolski el 23 de Jun. de 2011

1 voto

Más respuestas (0)

Preguntada:

el 23 de Jun. de 2011

Community Treasure Hunt

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

Start Hunting!

Translated by