I have a simple code that displays an image.
How can I display the image with reduced size? eg 80% of the original?
% read image
inst= imread('inst.jpg');
% open screen
screens=Screen('Screens');
whichscreen=max(screens);
[myscreen,rect]=Screen('OpenWindow',whichscreen); % open the window
% show image
int1=Screen('MakeTexture',myscreen,inst); % prepare texture
Screen('DrawTexture',myscreen,int1,[],[],0);
Screen('Flip',myscreen);