I'm programming a simple stroop task (very simple- I'm not very good at this). I've randomized the colors and the words to be presented and I have it set up so it will check to see if the color matches the word to save the reaction time as either congruent or incongruent.
I also want to record the correct and incorrect responses, but in order to do that, I'd need to check to see if the color matches the word AND the user's input. Is there a way to do that?
This is the code I have to check to see if the trials are congruent, but I'd also need to check to see if the user's input is "r".
if strcmp(excolortext,'RED')&excolor==[1 0 0]
excolor text is the word itself and excolor is the randomized color.
I'm sorry this is probably a pretty basic question. I'd appreciate any help you can give me.