SciPy TutorialLesson 9Free preview
SciPy Matlab Arrays
This lesson is part of SciPy · All levels
Summary
The scipy.io module provides a loadmat function to read the resulting MATLAB storage file so that old data can be reused in Python. In addition, the savemat function allows writing Python arrays to .mat format. This makes it easier to collaborate between MATLAB and Python environments in a single project.
Key points
- Loadmat reads the .mat file from MATLAB into the Python dictionary
- Savemat stores the Python array to the .mat format
- The result of the loadmat is a dictionary containing the name of the MATLAB variable
- The .mat format supports various data array types
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.