From: M Paheerathan on
When I get a output from a function it is giving as 4.5036e-5, but I would like to convert this to 0.000045036.

How to do it?



Than you,


Best Regards,
Paheerathan
From: us on
On Jul 27, 1:59 pm, "M Paheerathan" <mp.mscproj...(a)yahoo.com> wrote:
> When I get a output from a function it is giving as 4.5036e-5, but I would like to convert this to 0.000045036.
>
> How to do it?
>
> Than you,
>
> Best Regards,
> Paheerathan

a hint:

help format;
help sprintf; % <- and siblings...

us
From: Wayne King on
"M Paheerathan" <mp.mscproject(a)yahoo.com> wrote in message <i2mhm8$c1j$1(a)fred.mathworks.com>...
> When I get a output from a function it is giving as 4.5036e-5, but I would like to convert this to 0.000045036.
>
> How to do it?
>
>
>
> Than you,
>
>
> Best Regards,
> Paheerathan

Hi, depending on your application:

x = 4.5036e-5;
sprintf('%2.9f',x)

Wayne