klabhub / neurostim

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

noiseclut.samplefun error #201

Closed dshimaoka closed 9 months ago

dshimaoka commented 1 year 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 1 year ago

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