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

mTRFplot #15

Open
alexisdmacintyre opened this issue Sep 5, 2023 · 0 comments
Open

mTRFplot #15

alexisdmacintyre opened this issue Sep 5, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@alexisdmacintyre
Copy link

alexisdmacintyre commented Sep 5, 2023

Describe the bug
When plotting a multi-lag encoding model without averaging over channels in the TRF style, the model weights are the wrong dimension for the final call to plot: model.w is size 1 x n lags x n channels.

To Reproduce

mTRFplot(theModel)

Error using plot
Data cannot have more than 2 dimensions.

Error in mTRFplot (line 92)
h = plot(model.t,model.w,'linewidth',3); grid on

Temporary fix

I added this before the plot command

if any(size(model.w)==1)
    model.w = squeeze(model.w);
end
@alexisdmacintyre alexisdmacintyre added the bug Something isn't working label Sep 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants