Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in detrenddata #115

Open
vicentinstefano opened this issue Jul 15, 2024 · 0 comments
Open

Error in detrenddata #115

vicentinstefano opened this issue Jul 15, 2024 · 0 comments

Comments

@vicentinstefano
Copy link

During preprocessing, when I launch hmmprocess to detrend / standardise my data (but also later, if I do not perform these processes), it seems that Matlab is unable to read the data.X field of the variable data. This happens both if I give it the variable in the cell format and if I give the matrix directly.
Here is an instance of the script and the resulting error:

[data,T,options] = hmmpreprocess(data(sub),T(sub),options);

Error in line 108: Index in position 1 exceeds array bounds (must not exceed 1).

Error in detrenddata (line 6)
data.X(ind,:) = detrend(data.X(ind,:));

Error in hmmpreprocess (line 107)
data = detrenddata(data,T);

Any suggestions on how to solve this?
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant