klabhub / neurostim

Design and run visual neuroscience experiments using Matlab and the Psychophysics Toolbox.
MIT License
5 stars 4 forks source link

noiseclut.samplefun error #201

Closed dshimaoka closed 1 year ago

dshimaoka commented 2 years ago

There is a case when noiseclut.samplefun is not a cell array, which creates an error at l.232 of noiseclut.m To avoid this, one workaround would be to add the following just prior to l.232 as: if ~iscell(o.sampleFun) o.sampleFun = {o.sampleFun};
end

adammorrissirrommada commented 2 years ago

Agreed, can you please make the change and issue a pull request?