© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
A. DanialPython for MATLAB Developmenthttps://doi.org/10.1007/978-1-4842-7223-7_9

9. Interacting with the Operating System and External Executables

Albert Danial1  
(1)
Redondo Beach, CA, USA
 

Complex workflows rarely involve just MATLAB or Python in isolation. Other applications, whether custom in-house tools, commercial simulation and modeling packages, or open source tools, play important roles in the grander scheme of things. In this chapter, we’ll see how Python programs can interact with the underlying operating system and other executables. We’ll read and change environment variables, call other programs and capture their output, monitor the host computer’s ...

Get Python for MATLAB Development: Extend MATLAB with 300,000+ Modules from the Python Package Index now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.