How to pass variable parameters to mcc compiler being run within a script?

5 visualizaciones (últimos 30 días)
Given a m-script (although it doesn't work but shows the idea):
% defining a couple of variables
Exename='Myprog';
Inputdir='c:\Mydir';
Mfilename=[Inputdir '\' Exename '.m'];
Filemask=[Inputdir '\*.m'];
% running Matlab Compiler
mcc -m Exename -d Inputdir Mfilename -a Filemask
Error using mcc - The output directory, 'Inputdir' does not exist.

Respuestas (1)

William Thielicke
William Thielicke el 13 de En. de 2025
There is a function version:
mcc(options,mfilename)

Categorías

Más información sobre MATLAB Compiler en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by