MATLAB and Python have many powerful data containers. MATLAB’s primary containers are the matrix, cell array, and struct, while Python mainstays are lists, dictionaries, and, for the intended audience of this book, NumPy arrays. A fourth key container in the Python landscape is the Pandas dataframe which corresponds most closely to a MATLAB table. Tables and dataframes are covered in Chapter 13. Approximate equivalences of MATLAB and Python containers appear in Table 4-1.
4. Data Containers
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.