klabhub / neurostim

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

Assigning a new value to a dynamic property #33

Closed adammorrissirrommada closed 8 years ago

adammorrissirrommada commented 8 years ago

@teresakoster If I set a property to a function:

f=stimuli.fixation('fix'); f.Y = '@(fix) fix.X)';

and then assign it a new value instead (as might be done by a factorial design, for example):

f.Y = 10;

it retains the function and ignores the new value that was set.

adammorrissirrommada commented 8 years ago

Actually, this is true for my version, but it's possible that you have already made changes that resolve this (my cic/plugin code is somewhat dated now).

teresakoster commented 8 years ago

I'm pretty sure this works now!