MATLAB: How to set up Compiler Configuration

compiler configurations

Hi, I have set Compiler configuration using mex – setup. But one of my automation script invokes MATLAB instance as if run by the "system". And the invoke fails because, the compiler configuration is not set for the "system". DO any of you have any idea how to do it?
P.S. Just to provide some clarity, running MATLAB by "system", does not open the MATLAB GUI. And hence I am not able to run the mex -setup.
Your time is hugely appreciated,

Best Answer

When you run mex -setup you generate a personal mexopts.bat in your prefdir. Copy this to the system default lccopts.bat should solve your problem. And make a backup of lccopts.bat if you need the original lccopts.bat in the future.
Your prefdir is located in
prefdir
My lccopts.bat resides in C:\PROGRA~1\MATLAB\R2007b\bin\win32\mexopts\lccopts.bat