Azzera filtri
Azzera filtri

ABOT THE DIFFRENCE BTWN 64BIT MATLAB AND 32 BIT MATLAB

2 visualizzazioni (ultimi 30 giorni)
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??

Risposte (2)

dpb
dpb il 18 Dic 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.

Walter Roberson
Walter Roberson il 18 Dic 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.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by