Код: Выделить всё
# Command to start MATLAB and run the script
matlab_command = [
matlab_executable,
'-nodesktop',
'-nosplash',
'-r',
matlab_command_string
]
# Start MATLAB process
process = subprocess.Popen(matlab_command, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
Подробнее здесь: https://stackoverflow.com/questions/797 ... -in-python