Why do I receive a warning or error when using MATLAB Compiler?
조회 수: 7 (최근 30일)
이전 댓글 표시
I am using the MATLAB Compiler and receive the following error:
Warning: No matching builtin function available for $MATLAB/toolbox/simulink/simulink/set_param.bi
(where $MATLAB = the MATLAB root directory on my machine)
Why is this?
채택된 답변
MathWorks Support Team
2010년 4월 16일
SET_PARAM is a SIMULINK function that is not supported by MATLAB Compiler. For details on which products are supported by MATLAB Compiler see the following web page:
In certain cases you may get a warning/error message regarding SET_PARAM not being found when using MATLAB Compiler 4.0 (R14) even when you have not used this function in your code. This has been verified as a bug in the MATLAB Compiler 4.0 (R14). This bug has been fixed for MATLAB Compiler 4.1 (R14SP1). For previous releases, please read below for any possible workarounds:
To resolve this issue, you should modify the following file:
$MATLAB/toolbox/compiler/deploy/matlabrc.m
(where $MATLAB = the MATLAB root directory on your machine)
Comment out the following lines (numbers 81 and 82) that have a call to SET_PARAM.
set_param(0,'PaperType',defaultpaper);
set_param(0,'PaperUnits',defaultunits);
When you are finished, save these changes and issue the following command at the MATLAB command prompt:
rehash toolboxcache
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!