Is there a way to surpress the command window when starting the engine ?

I am using the engine library to call MATLAB from my C++ code. When I call the engopen function to start a MATLAB Engine session, the command window opens. Is there any way to prevent it, or close it immediately ? I saw an old question from 2009 about it and they only made it invisible.

1 Comment

Please post a link to the thread, if you mention it already. This is smarter than letting the readers search it again.

Sign in to comment.

 Accepted Answer

3 Comments

Yes this is the thread that I mentioned. There is not really a problem with this code. It would just be nicer (and maybe less confusing for other users) if the window did not open and close (or turned invisible) at all. I am working on Windows, but the Code has to run on the other two OS too. I am not sure if the command window opens also on other OS.
I am honestly not sure if I totally understand if the other code helps me. It seems to be coded in Matlab, but I'd need somehting that works in c++.
@Philipp Heinrich: Even if you work in C++, you are opening a Matlab engine. Then you can run Matlab commands in this engine.
As far as I know, the answer to your question is: No, there is no method to suppress the window when starting the engine.
ok. good to know. thank you for the answer.

Sign in to comment.

More Answers (0)

Products

Release

R2017b

Asked:

N/A
on 27 Jul 2018

Commented:

N/A
on 30 Jul 2018

Community Treasure Hunt

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

Start Hunting!