I am trying to design a basic visual stimulus (full-field vertical grating with contrast reversal), but am very new to MATLAB. I have created the images I want to use as frames and saved them as jpegs, but when I have tried to use the code to turn these into a movie, I just get a gray screen as my result. If anyone sees what I am doing wrong, I would greatly appreciate any help/guidance.
Here is my code:
reruns = 10;fps = 4;nframes = 2;Frames = moviein(nframes);load VerticalBars1.jpgFrames(:,1) = getframe;load VerticalBars2.jpgFrames(:,2) = getframe;movie(Frames, reruns, fps)
Thanks so much in advance for any help you can provide!
Best Answer