Question: The assignment is to write a Matlab program that builds an experimental interface for a color discrimination experiment. In this program you will be showing

The assignment is to write a Matlab program that builds an experimental interface for a color discrimination experiment. In this program you will be showing a participant two color swatches side-by-side.
You must randomize whether the color green is presented first, or the color blue is presented first. On each trial the colors of the two squares should be selected such that one of the squares is the target for that color category and the other square is randomly selected from the other 6 values in that category (resulting in 6 trials per color category and a total of 12 trials). Each stimulus presentation must be preceded by a 500ms fixation cross at the center of the screen. You will ask the user to respond whether the two swatches are the same or different using pushbuttons presented in the same figure as the color swatches.
Requirements
Ask to the user to provide their initials.
This information must be presented in a figure window the size of the screen of the computer the program is executed on.
You must use a UIcontrol (edit box) for the participant to enter their initials. (use a while loop to monitor the callback)
Display instructions to the participant on how to complete the experiment
Tell the user what the program does.
This information must be presented in a figure window the size of the screen of the computer the program is executed on.
You must use a UIcontrol for the participant to move to the next portion of the experiment.
Create two UIcontrols for the same/different responses (see the example figure above)
Set the UIcontrols visible off
Initialize all color hues
There is one target color for green and six comparison swatches
There is one target color for blue and six comparison swatches
Randomize the order to the comparison swatches
Display the stimulus (in the figure window)
In the color discrimination task participants are shown two colors squares side-by-side.
On each trial the colors of the two squares should be selected such that one of the squares is the target for that color category and the other square is randomly selected from the other 6 values in that category (resulting in 6 trials per color category and a total of 12 trials).
You must randomize whether the target color is green then blue or blue then green (so two blocks of trials).
Randomize whether the target color is presented on the right or on the left (so that for all blue trails the target is randomly selected to be show on either right or left and all green trails the target is randomly selected to be show on either right or left).
The program should save the responses the user gives to the same/different questions to a single file named with the initials that the user entered.
The assignment is to write a Matlab program that

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!