Is there a way to disable plotting in Compiled Matlab code (using MCR)

2 vues (au cours des 30 derniers jours)
Carl
Carl le 2 Avr 2015
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?

Réponses (1)

Jeff E
Jeff E le 2 Avr 2015
The function ISDEPLOYED returns true when run in the MCR, false when run in Matlab
So,
if ~isdeployed
plot([1 2] , [2 3])
end

Catégories

En savoir plus sur MATLAB Compiler dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by