Matlab Compiler: Difference between the -a and -I option?

조회 수: 2 (최근 30일)
Andreas Hansen
Andreas Hansen 2018년 7월 4일
답변: OCDER 2018년 7월 5일
Can anyone explain what is the difference between the -a and -I option of the mcc compiler command?
A small description is given here: https://se.mathworks.com/help/compiler/mcc-command-arguments-listed-alphabetically.html
  • -a path: Add path to the deployable archive.
  • -I directory: Add folder to search path for MATLAB files.
but I'm not sure what is the difference between the two.

답변 (1개)

OCDER
OCDER 2018년 7월 5일
Hm, that explanation is indeed too short be certain. Here's how I read the definitions:
the -a option will absolutely add files to your deployed file, including non-matlab files
the -I option will specify which folder to search for matlab files that your main .m file uses, but it
does not guarantee all files in this folder will be added. mcc uses a dependency checker
to determine which files to include into your deployed files.

카테고리

Help CenterFile Exchange에서 Application Deployment에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by