© 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_7

7. Input and Output

Albert Danial1  
(1)
Redondo Beach, CA, USA
 

The first step to solving many computational problems is reading data from the command line, interactive input, text or binary files, a network, a serial port, or a combination of these. The final step often involves writing data to text or binary files. In this chapter, we’ll cover input and output methods in detail, including reading and writing file formats important to scientific and numerical analyses—plain text files; binary files; the ubiquitous Excel formats .csv, .xls, and .xlsx; HDF5; NetCDF4; XML; JSON; ...

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.