Dori
Dori

Reputation: 3

Matlab: How do I disable a pop-up command window error when I run the compiled exe?

I want to avoid an alert to pop-up when I run a compiled program in a batch scheduled environment. This because it would remain unnoticed and therefore the execution would not exit with an error code, but just hang. I'm not there to press the OK button. Any ideas? Thank you all

Upvotes: 0

Views: 85

Answers (1)

matlabgui
matlabgui

Reputation: 5672

You can utilise the isdeployed flag:

if isdeployed
  %hardcode something
else
  %show your popup
end

Upvotes: 1

Related Questions