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

how to convert exponentional number into a decimal number

Asked by faa nad on 9 Oct 2012

dear sir,

 Euc_dist =
 [ 1.0e+013 *
    0.0106    1.9718]

Euc_dist is an example matrix which has the above value. but i dont want 1.0e+013,i m interested only in the remaining value i.e [0.0106 1.9718]how to get it

faa nad

Products

No products are associated with this question.

2 Answers

Answer by Azzi Abdelmalek on 9 Oct 2012
Euc_dist = 1.0e+013 *[    0.0106    1.9718]
x=Euc_dist/1.0e+013

0 Comments

Azzi Abdelmalek
Answer by Andrei Bobrov on 9 Oct 2012
a = 1.0e+013 *   [ 0.0106    1.9718]
out = a.*10.^-max(floor(log10(a)))

0 Comments

Andrei Bobrov

Contact us