how can i know , that i am using Matlab 64bit, or 32 bit.
4 views (last 30 days)
Show older comments
in install folder, there is glnxa64 folder, it means 64bit Matlab? or i should set 64bit option or somthing?
because when i load lib of PETSc, matlab always quit, or unstable,
i got this error.
Segmentation fault (core dumped)
0 Comments
Accepted Answer
Image Analyst
on 28 Dec 2013
You might find this utility useful:
% Returns the operating system as a string.
% Returns how many bits the MATLAB version is, NOT how many bits the computer is, despite what you'd think (see notes for "computer").
function [operatingSystem, howManyOSBits, howManyMATLABbits] = GetOS()
c = computer();
if findstr(c, '64')
howManyOSBits = 64;
else
howManyOSBits = 32;
end
programData = getenv('PROGRAMDATA');
if strfind(programData, '\ProgramData')
% It's Windows 7
operatingSystem = 'Windows 7';
elseif strfind(programData, '\Documents and Settings')
% It's Windows XP
operatingSystem = 'Windows XP';
else
% It's unknown
operatingSystem = 'Unknown operating system';
end
% Get the MATLAB version
howManyMATLABbits = computer('arch'); % Either win32 or win64
howManyMATLABbits = str2double(howManyMATLABbits(4:5));
2 Comments
Image Analyst
on 28 Dec 2013
Fei's "ANswer moved here:
sorry, i should tell you , i installed matlab in Ubuntu 13.04 64bit.
this function is also ok?
More Answers (0)
See Also
Categories
Find more on Introduction to Installation and Licensing 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!