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

New to MATLAB?

what is meant by 3e4 in matlab?

Asked by ALI IQBAL

ALI IQBAL (view profile)

on 19 Sep 2013

I am reading a program

M = 16; k = log2(M); n = 3e4; nsamp = 1;

kindly tell me the meaning of "3e4"

as soon as possible....

0 Comments

ALI IQBAL

ALI IQBAL (view profile)

Tags

Products

No products are associated with this question.

3 Answers

Answer by David Sanchez

David Sanchez (view profile)

on 19 Sep 2013
Accepted answer
3e4 = 3*10^4 = 30000

0 Comments

David Sanchez

David Sanchez (view profile)

Answer by Simon

Simon (view profile)

on 19 Sep 2013

Hi!

Did you try to input "3e4" in the command window? What happens?

Also try

3e1
3e2
3e3

0 Comments

Simon

Simon (view profile)

Answer by Jan Simon

Jan Simon (view profile)

on 19 Sep 2013

david's and Simon's answers are sufficient already.

While the definition is obviously clear and a common standard in nearly all programming languages, do you find it in Matlab's documentation?

What about 1E2, 1E-2 .1E-02, 1.e+2, 1.1e0, 2e2345678, 2d3, 3D4? The technical support stated, that only the formats supported by format are supported with a guarantee. But sscanf and the parser of M-code works for much more styles. It would be useful to document this fundamental detail.

0 Comments

Jan Simon

Jan Simon (view profile)

Contact us