machenslab / dPCA

An implementation of demixed Principal Component Analysis (a supervised linear dimensionality reduction technique)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Matlab: dpca_plot_default does not work for data with ndims < 4

cboulay opened this issue · comments

I know the intention is for the user to write their own plotting function, but I came across a small fix that could make dpca_plot_default more generalizable. dpca_plot_default assumes the time dimension is in the data's 4th dimension. A simple fix would be to change this line to:

time = 1:size(data,ndims(data));

That's a good catch, @cboulay. Thanks. Fixed.