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 Center および File ExchangeVariables についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by