Is there a way to disable plotting in Compiled Matlab code (using MCR)
조회 수: 2 (최근 30일)
이전 댓글 표시
I have some compiled matlab code I'd like to run in a batch mode. Is there any way to disable all plotting functionality when running the code, or do I have to recompile everything?
댓글 수: 0
답변 (1개)
Jeff E
2015년 4월 2일
The function ISDEPLOYED returns true when run in the MCR, false when run in Matlab
So,
if ~isdeployed
plot([1 2] , [2 3])
end
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 MATLAB Compiler에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!