

Note: If you have several MATLAB scripts, where master.m calls y.m, and y.m calls z.m, make sure that master.m is the first file listed in the command line when you compile the script: % mcc -m master.m y.m z. I would like to call MATLAB from my C/C++ application using the Engine interface.

If this is the first time you are using MATLAB to create an executable, run:.The steps are described using the following sample script, findR.m: function R = findRĬomplete these steps to compile the sample script: This method is the simplest way to compile a MATLAB script into a standalone executable. Also, you can still run interactive MATLAB jobs on Pleiades without compiling the scripts (it is easier to debug the scripts if they are not compiled into executables). D:\Program Files (x86)\Microsoft Visual Studio. MEX looked for the library in the following directories: D:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\LIB\amd64. MEX looked for a file with one of the names: cxcore.lib.
#Compile with matlab r2013a license
Note: It is not necessary to compile your MATLAB scripts for batch jobs running on the LDANs or Endeavour-on these systems, there is less risk of overwhelming the MATLAB license server because fewer hosts query the server. Warning: MEX could not find the library 'cxcore' specified with -l option. C:\Program Files\MATLAB\R2013a\extern\lib\win64\microsoft\libmx. In Properties-> Linker -> Input add these contents, note you should search these file and write actual position of them in your system. Compiled executables do not access the license server. Setup C++ compiler & linker This part is even more involved, some problem might happen occassionally. Therefore, in order to run a MATLAB script in a batch job on Pleiades, you must first compile the script. To avoid overwhelming the license server, and to reduce contention for the limited number of licenses, PBS batch jobs running on Pleiades are not allowed to query the MATLAB license server. NAS currently has 16 MATLAB licenses available.
