nocad.io.read_mat#

nocad.io.read_mat(path, variable=None)[source]#

Read a MATLAB file: state-space matrices A, B, C, D or a network matrix.

If the file holds A it is read as a state matrix (\(\mathbf{W}=\mathbf{A}^{\mathsf T}\)), with B and C giving the configuration; otherwise variable (default: the first square matrix, adj/W preferred) is read as an adjacency matrix. A cell array labels gives the node names.