grating code

Attached (or inserted - or inserted) is code for a 'grating' function.
Call it and play around with the dutyCycle parameter.

Jon

>
>Message: 4
> Date: Wed, 26 Feb 2003 15:29:06 -0000
> From: "mrpbbbbb <TimoReissner@...>" <TimoReissner@...>
>Subject: Tricky? ->different thicknesses and colors of drifting strips
>
>Hey!
>
>I'm trying to create drifting strips in only black and white (with
>sharp contrasts, n). I started with the grating in driftdemo.m and
>changed a few parameters. But now I'm completly stuck with changing
>the thickness of the black and white strips. I'm trying to get
>thinner black than white ones.
>Additionally, I'd like to get 2 different greyish strips instead of
>black and white ones.
>I tried everything I could find and think of but I'm still not
>really experienced with programming and Matlab.
>
>Thank's a lot for any suggestions.
>
>
>Best wishes,
>
>Timo
>
>
>

--
--------------------------
Jon Peirce
212 998 3529 (tel)
212 995 4011 (fax)

http://www.cns.nyu.edu/~jwp