I have a two arrays x1 and x2. At i = 803, x1(i-1) = 4.0000 and x2(i-1)=10
K>> abs(norm(x1(i-1)) - norm(x2(i-1)))ans = 6.0000
now
K>> abs(norm(x1(i-1)) - norm(x2(i-1))) == 6ans = 0
Why is matlab not accepting 6.0000 == 6 as true When I just enter
K>> 6.0000==6ans = 1
this is true, but why not for the variable, I need to use a equal to condition and I cannot
Best Answer