What Does 1.0e+012 * Mean in MATLAB?

  • Thread starter Thread starter sara_87
  • Start date Start date
  • Tags Tags
    Matlab Mean
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
6 replies · 22K views
sara_87
Messages
748
Reaction score
0

Homework Statement



what does this mean in matlab:

y =

1.0e+012 *

Columns 1 through 9

0.0000 -0.0000 0.0000 -0.0000 0.0000 -0.0000 0.0002 -0.0181 2.5985

Column 10

-4.6276

Homework Equations





The Attempt at a Solution



i understand that y is a vector with 10 elements but what does 1.0e+012 * mean?
 
Physics news on Phys.org
1.0e+012 means 1.0 X 1012. It's a notation used in computer circles that's very similar to scientific notation.

I don't know about the *, if that's just something you added. If not, I don't know what that means.
 
no, i didnt add it...it's actually there.
so, for the values in the first post, the first 6 values are just 0. and the rest are mutiplied by 1.0 X 10^12
?
 
but what if the value is:
0.000000087
matlab just puts:
0.000000
assumes this is 0?
 
I'm guess that this is a format problem. Try this statement in your script:

format long

For other options, see your MATLAB documentation.
 
thanks!
format long works nicely
;)