Borrar filtros
Borrar filtros

ABOT THE DIFFRENCE BTWN 64BIT MATLAB AND 32 BIT MATLAB

2 visualizaciones (últimos 30 días)
rathod ujjval rameshbhai
rathod ujjval rameshbhai el 18 de Dic. de 2015
Respondida: dpb el 18 de Dic. de 2015
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??

Respuestas (2)

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

Categorías

Más información sobre Matrix Indexing en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by