Main Content

MATLAB Runtime Options for Excel Add-Ins

What MATLAB Runtime Options are Supported by MATLAB Compiler for Excel Add-Ins?

  • -logfile — Creates a named log file.

How Do I Specify MATLAB Runtime Options?

If you are building your add-in using mcc, specify options such as -logfile using the mcc -R argument.

If You Created a Function From Scratch Using the Function Wizard

If you created a function from scratch using the Function Wizard, and want to specify MATLAB® Runtime options, you have to manually modify the .bas file code.

You do this by invoking the following MWUtil API calls, detailed with examples in Class MWUtil: