I'm conducting some psychophysical experiments and I need to construct a drifting sine wave grating and square wave grating that have a gaussian and gabor function applied to them using matlab and mgl. I'm fine with the sine wave grating but I'm having real problems constructing the square wave, I can create a set of black and white lines but can't do much more with them after that! Does anyone have any sample code that addresses this problem or could anyone point me in the right direction for some inspiration
Any help would be gratefully received!
see help rectpuls
Hi, thanks for trying, but that's not what she needs. Sarah needs gratings, not a matrix of 0's and 1's.