Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

creating a square wave grating using matlab and mgl

75 views
Skip to first unread message

Sarah Ford

unread,
Feb 27, 2009, 6:46:01 AM2/27/09
to
Hi,

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!

aasim Azooz

unread,
Feb 27, 2009, 7:37:01 AM2/27/09
to
"Sarah Ford" <s.f...@rhul.ac.uk> wrote in message <go8jpp$9on$1...@fred.mathworks.com>...

> Hi,
>
> 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

Egor Ananev

unread,
Apr 20, 2010, 11:43:04 AM4/20/10
to
> 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.

0 new messages