What Does 1.0e+012 * Mean in MATLAB?

  • Thread starter Thread starter sara_87
  • Start date Start date
  • Tags Tags
    Matlab Mean
Click For Summary

Discussion Overview

The discussion revolves around the interpretation of the notation "1.0e+012 *" in MATLAB output, specifically in the context of a vector displayed in scientific notation. Participants explore the implications of this notation and its effect on the representation of numerical values.

Discussion Character

  • Homework-related
  • Technical explanation

Main Points Raised

  • One participant asks for clarification on the meaning of "1.0e+012 *" in MATLAB, noting that it appears in the output of a vector.
  • Another participant explains that "1.0e+012" represents 1.0 multiplied by 10 to the power of 12, likening it to scientific notation.
  • A subsequent reply confirms that the notation is indeed present in the output and questions whether the first six values of the vector are simply multiplied by this factor.
  • Another participant expresses concern about how MATLAB handles very small values, questioning if a value like 0.000000087 would be displayed as 0.
  • One participant suggests that the issue may relate to formatting and recommends using the "format long" command to adjust the display settings in MATLAB.
  • A later reply confirms that using "format long" successfully resolves the display issue.

Areas of Agreement / Disagreement

Participants generally agree on the interpretation of "1.0e+012" as scientific notation, but there is uncertainty regarding the implications for very small values and how they are displayed in MATLAB. The discussion remains unresolved regarding the handling of such small numbers.

Contextual Notes

There are limitations regarding the assumptions about MATLAB's formatting behavior and how it displays very small numerical values, which are not fully explored in the discussion.

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

  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
3
Views
4K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K