Configuring MATLAB to exit nodisplay interactive mode on EOF (Ctrl-D)

2 views (last 30 days)
I usually like to run MATLAB's interactive mode in a terminal window, using the -nodisplay command line option. When I want to exit, I instinctively hit Ctrl-D, which in most *nix environments writes an EOF character to the stream. In most programming languages with interactive modes (like Octave, Python, or most shells), this exits the program. MATLAB doesn't do this, so I have to use exit instead -- not a huge problem, but it is a mild inconvenience. Is there any way to configure MATLAB to exit on EOF?
I suppose this is kind of petty, but I am losing literally seconds of productivity.

Answers (0)

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!