You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: