Loading .mat files
In this exercise, you'll figure out how to
load a MATLAB file using scipy.io.loadmat()
and you'll discover what Python
datatype it yields.
The file 'albeck_gene_expression.mat' is in your working directory. This file contains gene expression data from the Albeck Lab at UC Davis.
Deze oefening maakt deel uit van de cursus
Introduction to Importing Data in Python
Oefeninstructies
- Import the package
scipy.io. - Load the file
'albeck_gene_expression.mat'into the variablemat; do so using the functionscipy.io.loadmat(). - Use the function
type()to print the datatype ofmatto the shell.
Praktische interactieve oefening
Probeer deze oefening eens door deze voorbeeldcode in te vullen.
# Import package
# Load MATLAB file: mat
# Print the datatype type of mat
print(____)