Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

To resolve issues starting MATLAB on Mac OS X 10.10 (Yosemite) visit: http://www.mathworks.com/matlabcentral/answers/159016

how to convert exponentional number into a decimal number

Asked by faa nad on 9 Oct 2012

dear sir, i m calculating euclidean distance between two vector,the output is in terms of exponential as 1.0635e+011 but i m need of decimal number as .0106

please do me a favour

0 Comments

faa nad

Products

No products are associated with this question.

2 Answers

Answer by Matt J on 9 Oct 2012
    >> z=1.0635e+011 %What you have
    z =
       1.0635e+11
    >> z/1e13   %What you've asked for
    ans =
        0.0106

0 Comments

Matt J
Answer by Andrei Bobrov on 9 Oct 2012
a*10^-ceil(log10(a))

0 Comments

Andrei Bobrov

Contact us