필터 지우기
필터 지우기

ABOT THE DIFFRENCE BTWN 64BIT MATLAB AND 32 BIT MATLAB

조회 수: 2 (최근 30일)
rathod ujjval rameshbhai
rathod ujjval rameshbhai 2015년 12월 18일
답변: dpb 2015년 12월 18일
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??

답변 (2개)

dpb
dpb 2015년 12월 18일
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 2015년 12월 18일
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.

카테고리

Help CenterFile Exchange에서 Matrix Indexing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by