Exon 0 exon1 there is no concept of a tuple in matlab.
Save to mat file python.
Save a python data structure to a mat file.
And after that the loadmat is the way to go.
Data has to be structured in the same way as for loadmat i e.
If you do not specify filename the save function saves to a file named matlab mat.
Octave has matlab compatible save and load functions.
This saves the array objects in the given dictionary to a matlab style mat file.
In matlab you can have cell arrays or structs which contain other arrays but you cannot have just a tuple of arrays assigned to a single variable which is what you have in mdict exon.
It should be composed of simple data types like dict list str int and float.
Mat scipy io loadmat file mat similarly you can use savemat to export to mat files.
To save us using a matlab license let s start in octave.
If filename has no extension that is no period followed by text and the value of format is not specified then matlab appends mat if filename does not include a full path matlab saves to the current folder.
Python data can be saved to a mat file with the function savemat.
Start octave octave at the command line for me.
The matlab variables matrices arrays can be stored in mat files in order to read this data in python you would need a scipy io package.
That is not possible.
Scipy io savemat file name mdict appendmat true format 5 long field names false do compression false oned as row source save a dictionary of names and arrays into a matlab style mat file.
Name of file specified as a character vector or string scalar.
You may have a mat file that you want to read into scipy.
Or you want to pass some variables from scipy numpy into matlab.