It is not possible to access data from the MATLAB Command Window when using Engine routines on UNIX, Linux, and Mac platforms. The MATLAB Engine operates by turning all command-line control of MATLAB to your own program.
This is achieved by redirecting stdin and stdout (using UNIX pipes) to your program. Therefore, the MATLAB command window cannot simultaneously be available to the user.
The MATLAB Engine interface on Windows launches MATLAB as an ActiveX Automation Server and therefore the command window is available to accept user input.
Best Answer