<p>How can I determine if I'm running on a 32bit or a 64bit version of matlab?</p>

<p>I have some pre-compiled mex-files which need different path's depending on 32/64bit matlab.</p>

Does this really work? Which version of matlab are you using?
As far as I'm aware the 64 bit platforms end with "64" not 86. From the matlab site
http://www.mathworks.com/access/helpdesk/help/techdoc/ref/computer.html
I don't think that computer will ever return GLNXA86 but GLNXA64 instead.
So this question is specific to GNU Linux 32bit or 64bit version.
If you are testing for any 64bit platform then you probably need to test the last 2 characters to find "64" i.e. something like
```
```
if regexp(computer,'..$','match','64'),
   % setup 64bit options
else,
   % 32bit options
end
```
```