Question: [MATLAB] Create a script called HW2Question2.m (PsychToolBox is needed for this problem) a) Open a green window and wait for a keypress. b) When the
[MATLAB] Create a script called HW2Question2.m (PsychToolBox is needed for this problem)
a) Open a green window and wait for a keypress.
b) When the subject/user presses a button, display, somewhere in the top-right portion of the screen, a sentence of your choosing in 24pt font and wait for a keypress.
c) When the subject/user presses a button, have another line of text appear, 50 pixels below the first, that says woop woop doop bork. The original sentence should still be visible. Wait for a keypress.
d) We are going to repeat a-c, but will add a 1 second pause between each event. When the subject/user presses a button (following the last wait for a keypress), clear the screen (so its just a green window; dont close and open a new window, just show a blank green screen), wait 1 second, draw the first sentence, wait another second, draw the second sentence (the first should still be visible), wait another second and then close the window (do not wait for keypress).
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
