Respected sir,
this is the code iam using but the required output is not coming properly...
see the attached image like that i required.....
[w, rect]=Screen('OpenWindow',0);
[xc,yc]=RectCenter(rect);
Screen ('FillRect',w,[128 128 128],[100 100 100 100]);
words ={'CAT','MAT','COOL'};
Screen('TextFont',w,'Times New Roman');Screen('TextSize',w,50);
Screen('Textstyle',w,1);
% noisemat = 0.5+0.5*rand(100,200);
% Screen('MakeTexture',w,noisemat*GrayIndex(w));
for i = 1:3
noisemat = 0.5+0.5*rand(100,300);
randTex = Screen('MakeTexture',w,noisemat*GrayIndex(w));
Screen('DrawTexture',w,randTex);
Screen('DrawText',w,char(words(i)),xc-80,yc-25,0);
Screen ('Flip',w);
pause(2);
end
Screen('CloseAll');
[xc,yc]=RectCenter(rect);
Screen ('FillRect',w,[128 128 128],[100 100 100 100]);
words ={'CAT','MAT','COOL'};
Screen('TextFont',w,'Times New Roman');Screen('TextSize',w,50);
Screen('Textstyle',w,1);
% noisemat = 0.5+0.5*rand(100,200);
% Screen('MakeTexture',w,noisemat*GrayIndex(w));
for i = 1:3
noisemat = 0.5+0.5*rand(100,300);
randTex = Screen('MakeTexture',w,noisemat*GrayIndex(w));
Screen('DrawTexture',w,randTex);
Screen('DrawText',w,char(words(i)),xc-80,yc-25,0);
Screen ('Flip',w);
pause(2);
end
Screen('CloseAll');
thanking you
yours sincerely
raghavendra