Originally Posted by

**tecne** Hi guys,

I have the following 10 numbers:

6.3822e-006

2.511e-005

2.5467e-005

2.8725e-005

0.00016884

0.0028119

0.00020491

2.8006e-005

2.796e-005

0.00030903

I would like to map these numbers to the range between 0 and 1 such that when we add them the result is 1.

Any ideas?

Thanks

Alex

Add them all up to get a total t. Now devide all the numbers by t.

Code:

>n=[6.3822e-006;2.511e-005;2.5467e-005;2.8725e-005;0.00016884;..
> 0.0028119;0.00020491;2.8006e-005;2.796e-005;0.00030903]
6.3822e-006
2.511e-005
2.5467e-005
2.8725e-005
0.00016884
0.0028119
0.00020491
2.8006e-005
2.796e-005
0.00030903
>
>t=totalsum(n)
0.00363633
>
>nn=n/t
0.00175512
0.00690531
0.00700349
0.00789945
0.0464314
0.77328
0.0563508
0.00770172
0.00768907
0.084984
>

RonL