... | ... | @@ -134,7 +134,6 @@ send2ClientPanel('trlNoRsp', ResultvectorResponse); |
|
|
To display the percentages of correct trials, a logical vector must be entered listing whether a trial was correct (1 or true) or not (0 or false). You can, for example, do this as follows:
|
|
|
```matlab
|
|
|
if res.choice{trial,1}.badKey == par.numPeck % incorrect response
|
|
|
|
|
|
punishment(par.punDur);
|
|
|
res.incorr(trial,1) = 1; % note trial as incorrect
|
|
|
|
... | ... | |