pillowlab / LNPfitting

Linear-Nonlinear-Poisson (LNP) model fitting via Maximally-Informative-Dimensions (MID) / maximum likelihood
MIT License
19 stars 2 forks source link

Undefined function or variable 'normalizecols'. #1

Closed tristanstoeber closed 7 years ago

tristanstoeber commented 7 years ago

Hey, upon running tutorial1_MID_tfilter.m on a matlab r2016a, i receive the following bug report:

tutorial1_MID_tfilter Number of spikes in training dataset: 3060 Computing STA and STC... Computing top iSTAC filter... Pruning out 14 dimensions (out of 32) from raw stimuli Stripped off dimension 1, KL div=[0.3401 0.3401] Undefined function or variable 'normalizecols'.

Error in makeBasis_StimKernel (line 59) kbasis = normalizecols(kbasis);

Error in makeFittingStruct_LNP (line 53) ktbas = makeBasis_StimKernel(ktbasprs,nkt);

Error in tutorial1_MID_tfilter (line 87) gg0 = makeFittingStruct_LNP(filt0,RefreshRate,mask); % create LNP fitting structure

jpillow commented 7 years ago

Hi Tristan,

Thanks for flagging this and apologies for the error. I've added the 'normalizecols.m' function to the repository.

I should add that this repo is not finished yet and there may be other problems lurking. I'm hoping to finish it up in the next month!

best, Jonathan

On Wed, Dec 28, 2016 at 2:16 AM, Tristan Stöber notifications@github.com wrote:

Hey, upon running tutorial1_MID_tfilter.m on a matlab r2016a, i receive the following bug report:

tutorial1_MID_tfilter Number of spikes in training dataset: 3060 Computing STA and STC... Computing top iSTAC filter... Pruning out 14 dimensions (out of 32) from raw stimuli Stripped off dimension 1, KL div=[0.3401 0.3401] Undefined function or variable 'normalizecols'.

Error in makeBasis_StimKernel (line 59) kbasis = normalizecols(kbasis);

Error in makeFittingStruct_LNP (line 53) ktbas = makeBasis_StimKernel(ktbasprs,nkt);

Error in tutorial1_MID_tfilter (line 87) gg0 = makeFittingStruct_LNP(filt0,RefreshRate,mask); % create LNP fitting structure

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/pillowlab/MIDestimator/issues/1, or mute the thread https://github.com/notifications/unsubscribe-auth/ADdGW_TRR293Q7NsYRu-1s3N4HmJpX50ks5rMgzngaJpZM4LWuV- .