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; ...
7. Input and Output
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.