ABOT THE DIFFRENCE BTWN 64BIT MATLAB AND 32 BIT MATLAB
2 views (last 30 days)
Show older comments
I have a very genaral question about variable storage in matlab.....
When we have 64bit Matlab installed, what will be the size of storage of any variable? like
A=1; b=2.2
Will both be stored as 64 bit?
What in case of 32 bit??
0 Comments
Answers (2)
dpb
on 18 Dec 2015
Default numeric variables in Matlab are double precision in all versions; only addressing range is expanded with indexing by the 64-bit version. Both A and b in your question are default double; just because A holds an integer value doesn't change it's type from default since didn't use one of the casting functions to make it anything different.
0 Comments
Walter Roberson
on 18 Dec 2015
32 bit MATLAB uses the same size of storage as 64 bit MATLAB does for any user-accessible data. The variables you indicate are both double precision values, which take 64 bits per element in both versions.
The size of internal pointers changes, so the size of cell arrays and structs can be different and mex code might need to change.
0 Comments
See Also
Categories
Find more on Variables in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!