What Does 1.0e+012 * Mean in MATLAB?

  • Thread starter Thread starter sara_87
  • Start date Start date
  • Tags Tags
    Matlab Mean
AI Thread Summary
In MATLAB, the notation "1.0e+012 *" indicates that the subsequent values are multiplied by 1.0 x 10^12, which is a form of scientific notation. The vector 'y' contains 10 elements, with the first six values being zero and the others scaled by this factor. If a value like 0.000000087 appears, MATLAB may display it as 0 due to formatting limitations. Using the command "format long" can help display more decimal places for better clarity. This formatting adjustment allows users to see smaller values without them being rounded to zero.
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
;)
 

Similar threads

Back
Top