I have a MATLAB session already opened. I would type the following from the command line: dos('temp.bat'). This would result in the opening up of a new MATLAB session within which the results are generated and outputted. I am trying to prevent this new MATLAB session from opening up. I would prefer if the results generated by the MATLAB script would be outputted within the same MATLAB session from which the "dos" command was used.
The current syntax of 'temp.bat' is as follows: "matlab.exe" -r "filename"
Thanks
Floyd
Best Answer