Pinned topic trouble with new install
I get the error message:
Undefined function or method 'cplexlink125' for input arguments of type 'double'.
There is a file cplexlink125.mexw32 which is in my path. Is this the file that was being looked for, and if so, why couldn't it be found?
Paul Berglund

Re: trouble with new install
20130122T23:46:05ZThis is the accepted answer. This is the accepted answer. SystemAdmin
 20130122T06:48:17Z
Does it help to add the folder containing cplexlink125.mexw32 to the environment variables PATH and/or MATLABPATH?
There were two different problems. One was that I had carelessly installed the 32bit cplex when I needed the 64bit.
The other was that I needed to add the directory with cplex's matlab source to my path.
I did that, and the examples ran fine.
Paul Berglund 
Re: trouble with new install
20131101T05:15:41ZThis is the accepted answer. This is the accepted answer. PaulBerglund
 20130122T23:46:05Z
OK, I figured it out.
There were two different problems. One was that I had carelessly installed the 32bit cplex when I needed the 64bit.
The other was that I needed to add the directory with cplex's matlab source to my path.
I did that, and the examples ran fine.
Paul BerglundHi Paul,
Could you tell me how can you fix the problem "Undefined function or method 'cplexlink125' for input arguments of type 'double'"?
I already run the following code in matlab:
path(path,'C:\Program Files (x86)\IBM\ILOG\CPLEX_Studio_Preview125\cplex\matlab\x86_win32')
path(path,'C:\Program Files (x86)\IBM\ILOG\CPLEX_Studio_Preview125\cplex\examples\src\matlab')
and then I try the example cplexlpex but it still appears that error.
Thanks,
Huy

Re: trouble with new install
20131106T07:33:04ZThis is the accepted answer. This is the accepted answer. Huy Doan
 20131101T05:15:41Z
Hi Paul,
Could you tell me how can you fix the problem "Undefined function or method 'cplexlink125' for input arguments of type 'double'"?
I already run the following code in matlab:
path(path,'C:\Program Files (x86)\IBM\ILOG\CPLEX_Studio_Preview125\cplex\matlab\x86_win32')
path(path,'C:\Program Files (x86)\IBM\ILOG\CPLEX_Studio_Preview125\cplex\examples\src\matlab')
and then I try the example cplexlpex but it still appears that error.
Thanks,
Huy
Are you sure you need 32bit CPLEX? If your OS or matlab version is 64bit then you may need 64bit CPLEX.

Re: trouble with new install
20131106T07:40:25ZThis is the accepted answer. This is the accepted answer. DanielJunglas
 20131106T07:33:04Z
Are you sure you need 32bit CPLEX? If your OS or matlab version is 64bit then you may need 64bit CPLEX.
I only have the 32bit CPLEX. Does it mean that I cannot use my CPLEX on the 64bit OS or Matlab?

Re: trouble with new install
20140122T07:10:14ZThis is the accepted answer. This is the accepted answer. Huy Doan
 20131106T07:40:25Z
I only have the 32bit CPLEX. Does it mean that I cannot use my CPLEX on the 64bit OS or Matlab?
Like Paul said a few posts above: The versions of matlab and CPLEX must match. So for 64bit matlab you need 64bit CPLEX and for 32bit matlab you need 32bit CPLEX.