How can I keep the non-Matlab command window open after executing an executable by double clicking it?

By double clicking an executable, a non-MATLAB window opens and after the execution, it immediately closes. How can I keep it open?

1 Comment

Are you able to provide more details? Assuming this is an EXE created by Compiler, can you share the code you compiled into the EXE?

Sign in to comment.

 Accepted Answer

There is very little context provided by the question, but if it is an executable created with the Matlab Compiler, then for example, this will launch a Windows cmd shell,
!start cmd
and it should persist.

More Answers (0)

Categories

Products

Release

R2024b

Asked:

on 21 Oct 2024

Answered:

on 21 Oct 2024

Community Treasure Hunt

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

Start Hunting!