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

2 次查看(过去 30 天)
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.

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 MATLAB Compiler 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by