Quantcast
Channel: MATLAB Central Newsreader Recent Posts
Viewing all articles
Browse latest Browse all 19628

Re: How to distinguish 64bit from 32 bit versions

$
0
0
In 2011b, Dan is correct, the help is misleading: I have a Windows 7 64-bit computer, and I have both the 32-bit and 64-bit versions of MATLAB installed; 'computer' in the 64-bit version returns PCWIN64, while in the 32-bit version it returns just PCWIN.

What I want to know, if anyone happens to read this post on this old thread, is if there's some way (perhaps leveraging this difference in the return result of computer?) to affect the system tray icon so as to be able to tell at a glance which icon corresponds to which version. (I tried editing the the matlab.ico for the 32-bit version, but of course it wouldn't let me save over the one that's there; I also tried renaming the original first--which it let me do--then saving the edited version w/ the right name, but it says I can't save to that folder. Is the file to be used as the icon specified in an editable text preferences/config file somewhere?)

Thanks!

DG

Dan Hensley <somewhere@over.there> wrote in message <v_WdnZSNDfCA4jranZ2dnUVZ_i2dnZ2d@comcast.com>...
> us wrote:
> > Dan Hensley:
> > <SNIP bits and pieces on <OS vs ML>
> >
> >>>> help computer;
> >>> Doesn't that tell you about your operating system,
> > rather
> >>> than the MATLAB version you have installed?
> >> The first line of the help is a bit misleading. It tells
> > you what flavor of Matlab is running. So compare the
> > return string to the list that the help gives you...
> >
> > dan
> > the OP is correct, the output refers to the OS rather than
> > ML itself...
>
> I don't believe this is correct. On my Linux64 system, when I launch
> Matlab it (rightly) returns 'GLNXA64'. However, when I launch Matlab on
> the same system with 'matlab -arch=glnx86', it returns 'GLNX86'. In the
> latter case it's definitely running the 32bit executable.
>
> Dan

Viewing all articles
Browse latest Browse all 19628

Trending Articles