Skip to content

mTRFplot #15

@alexisdmacintyre

Description

@alexisdmacintyre

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

Metadata

Metadata

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions