From: Rania on
hello professionals .. Im a beginner and need your help..

I have a matrix which contains numbers like 5*(10^9) and 6.5*(10^-5) , both in the same matrix.. when i enter the values, matlab rounds the small values of order (10^-5) to zero... i need the accurate numbers to work with & need to find the exact values... does anybody know how to get over this problem ???

the answer returned is something like this:

H =

1.0e+007 *

-0.0000 0 -0.0000 -0.0000 -0.0000
0 0.0000 0.0000 0 0
0 0.502 -0.0002 -0.0035 -2.1300
4.2 0 0 -0.0000 0
0 0 0 0 -0.0000

i need the exact values to be shown :(
thanks in advance :)
From: Mensanator on
On Apr 2, 2:32 pm, Rania <r.tah...(a)gmail.com> wrote:
> hello professionals .. Im a beginner and need your help..
>
> I have a matrix which contains numbers like 5*(10^9)   and  6.5*(10^-5) , both in the same matrix.. when i enter the values, matlab rounds the small values of  order (10^-5) to zero... i need the accurate numbers to work with & need to find the exact values... does anybody know how to get over this problem ???
>
> the answer returned is something like this:
>
> H =
>
>   1.0e+007 *
>
>    -0.0000         0   -0.0000   -0.0000   -0.0000
>          0    0.0000    0.0000         0         0
>          0    0.502   -0.0002    -0.0035    -2.1300
>          4.2         0         0   -0.0000         0
>          0         0         0         0   -0.0000
>
> i need the exact values to be shown :(
> thanks in advance :)

Are they actually rounded, or just displayed that way?
From: Rania on
I think they are rounded ... I already have the exact solution of the operation im trying to do by matlab ... the solution i have is so far from the answer i get from matlab ...

---> If they are not rounded but just shown that way, is it possible to view the complete numbers & have the exact solution ??

thanks again & appreciate your help
From: Mensanator on
On Apr 2, 5:59 pm, Rania <r.tah...(a)gmail.com> wrote:
> I think they are rounded ... I already have the exact solution of the operation im trying to do by matlab ... the solution i have is so far from the answer i get from matlab ...
>
> ---> If they are not rounded but just shown that way, is it possible to view the complete numbers & have the exact solution ??

Well, I don't know anything about Matlab, but if you look at your
posted example, some cells have 0 where others hav 0.0000. That
usually indicates a display problem and the calculations are
being done correctly, i.e., the 0.0000 is actually 0.000000023876
whereas 0 is actually 0.

Now if a cell should have 0.000000023876 but is displaying 0,
you probaly do have a rounding problem.

>
> thanks again & appreciate your help