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

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.

回答 (1 件)

William Thielicke
William Thielicke 2025 年 1 月 13 日

0 投票

There is a function version:
mcc(options,mfilename)

カテゴリ

ヘルプ センター および File ExchangeMATLAB Compiler についてさらに検索

質問済み:

2018 年 5 月 3 日

回答済み:

2025 年 1 月 13 日

Community Treasure Hunt

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

Start Hunting!

Translated by