PMassicotte / eemR

Utilities for pre-processing emission-excitation-matrix (EEM).
19 stars 10 forks source link

Export to Matlab Error #41

Closed DannyC91 closed 6 years ago

DannyC91 commented 7 years ago

Hi, Using the export to Matlab function with version 0.1.4, when it gets exported the x field exports as a single column of data rather than as a matrix. I don't think it's anything i've done as the same error occurred going through with the source code data too.

PMassicotte commented 7 years ago

You just need to reshape the X matrix. It is a bug from the package that I use to export the matrix.

load('../data/clean/OriginalData.mat');

OriginalData.X = reshape(OriginalData.X, OriginalData.nSample, OriginalData.nEm, OriginalData.nEx);
DannyC91 commented 7 years ago

Thanks, also do you know how to access the eem_read_parafac function, or is that still in development?

PMassicotte commented 7 years ago

You have the install the dev branch:

devtools::install_github("pmassicotte/eemR", ref = "plot-parafac")