Make load_mat_file_data robust against matrices in file or provide more informative error
load_mat_file_data
is loading all variables in a mat-file and puts them into a matrix via
data = [data, tmp(:)];
However, if the datafile contains a matrix, this triggers the error
load_mat_file:: All the vectors (variables) in must have the same number of rows (observations)!
We should either
- Adjust the error message to say that only vectors are allowed and/or
- Only try to read the declared observed variables, which are vectors
This may also affect the other load_
-files