From: M Paheerathan on 27 Jul 2010 07:59 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 27 Jul 2010 08:02 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 27 Jul 2010 08:07 "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
|
Pages: 1 Prev: How can get the integral of surface in 3-D Next: Polynomial Multiplication |