Importing and exporting¶
The following functions allow one to read and write data as .mat files.
- gnlse.read_mat(filename)¶
Imports *.mat file as dictionary.
- Parameters
- filenamestring
Name of *.mat file (‘example.mat’).
- Returns
- matdict
dictionary of variables in imported file keys - names of variables values - variables’ values
- gnlse.write_mat(dictionary, filename)¶
Exports dictionary to *.mat file.
- Parameters
- dictionarydict
A list of variables.
- filenamestring
Name of *.mat file (‘example.mat’).