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!