- #1
gpax42
- 25
- 0
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
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