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!

Homework Help: A number in matlab by default uses how much memory?

  1. Feb 19, 2010 #1
    A number in matlab by default uses how much memory?

    my professor asked me this question today and I wasnt sure.

    In matlab I assigned a random number to the variable x

    >> x = 5.5623

    and then used the "whos" command to determine how many bytes were stored. According to "whos", the number required 8 bytes of memory.

    However, 8 wasnt part of the multiple choice.

    the multiple choice were...

    a. 64 bits
    b. Depends on its length
    c. 8 bits if it has no decimal, 32 bits if it has a decimal
    d. 4 megabytes

    could any1 shine some light on this problem for me, any advice would be much appreciated :smile:
  2. jcsd
  3. Feb 19, 2010 #2


    Staff: Mentor

    A byte is 8 bits...
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook