From: ananda on
in my program a result comes in a matrix form.. i need to check whether each element in the matrix is same or not...for that i take the first element and check it against the all element...
in the result it shows not equal,though it equals..
i think its because of high precision...
how to overcome this problem..
can anyone help me....
From: us on
"ananda " <anandabalan_s89(a)rediff.com> wrote in message <hqq3al$fa9$1(a)fred.mathworks.com>...
> in my program a result comes in a matrix form.. i need to check whether each element in the matrix is same or not...for that i take the first element and check it against the all element...
> in the result it shows not equal,though it equals..
> i think its because of high precision...
> how to overcome this problem..
> can anyone help me....

unless you mean a CELL by ...in a matrix form..., all elements in a ML matrix (array) are the same by definition...
describe your problem clearly with a small example...

us
From: ananda on
"us " <us(a)neurol.unizh.ch> wrote in message <hqq3lv$kpj$1(a)fred.mathworks.com>...
> "ananda " <anandabalan_s89(a)rediff.com> wrote in message <hqq3al$fa9$1(a)fred.mathworks.com>...
> > in my program a result comes in a matrix form.. i need to check whether each element in the matrix is same or not...for that i take the first element and check it against the all element...
> > in the result it shows not equal,though it equals..
> > i think its because of high precision...
> > how to overcome this problem..
> > can anyone help me....
>
> unless you mean a CELL by ...in a matrix form..., all elements in a ML matrix (array) are the same by definition...
> describe your problem clearly with a small example...
>
> us

thank you for help dude.. but i solved that problem myslef..
 | 
Pages: 1
Prev: GA start point
Next: precision