Date: Feb 15, 2013 2:19 PM
Author: dpb
Subject: Re: Inaccurate number in array

On 2/15/2013 1:17 PM, nallekavn wrote:
> Hi,
>
> I experience what seems to be a precision-related problem. The value 1.3
> as calculated for instance in the 14th position of 0:0.1:2 is not equal
> to 1.3.

...

> Does anyone have an idea how to fix this?

See the FAQ...

<http://matlab.wikia.com/wiki/FAQ#Why_is_it_advised_to_avoid_using_the_.22eval.22_function.3F>

--