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

조회 수: 5 (최근 30일)
bbb_bbb
bbb_bbb 2018년 5월 3일
답변: William Thielicke 2025년 1월 13일
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일
There is a function version:
mcc(options,mfilename)

카테고리

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