1. Limited time only! Sign up for a free 30min personal tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

What does this mean in matlab?

  1. Oct 29, 2009 #1
    1. The problem statement, all variables and given/known data

    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

    2. Relevant equations



    3. The attempt at a solution

    i understand that y is a vector with 10 elements but what does 1.0e+012 * mean?
     
  2. jcsd
  3. Oct 29, 2009 #2

    Mark44

    Staff: Mentor

    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.
     
  4. Oct 29, 2009 #3
    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
    ?
     
  5. Oct 29, 2009 #4

    Mark44

    Staff: Mentor

    Sounds reasonable to me.
     
  6. Oct 30, 2009 #5
    but what if the value is:
    0.000000087
    matlab just puts:
    0.000000
    assumes this is 0?
     
  7. Oct 30, 2009 #6

    Mark44

    Staff: Mentor

    I'm guess that this is a format problem. Try this statement in your script:

    format long

    For other options, see your matlab documentation.
     
  8. Oct 30, 2009 #7
    thanks!
    format long works nicely
    ;)
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: What does this mean in matlab?
  1. What does this mean? (Replies: 7)

Loading...