klabhub / neurostim

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

Modified handling of prms in cic.jitter(). #60

Closed cnuahs closed 8 years ago

cnuahs commented 8 years ago

The prms parameter is now always forced to a cell array. This was the case when using a named (i.e., known) distribution but not when using a user-defined function. Now, user-defined functions may also recieve multiple arguments in an intuitive manner, e.g.,

jitter(c,'plugin','property',{N,k},'distribution',@randperm);

rather than resorting to an anonymous function like this,

jitter(c,'plugin','property',{N,k},'distribution',@(x) randperm(x{:}))