... | @@ -134,7 +134,6 @@ send2ClientPanel('trlNoRsp', ResultvectorResponse); |
... | @@ -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:
|
|
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
|
|
```matlab
|
|
if res.choice{trial,1}.badKey == par.numPeck % incorrect response
|
|
if res.choice{trial,1}.badKey == par.numPeck % incorrect response
|
|
|
|
|
|
punishment(par.punDur);
|
|
punishment(par.punDur);
|
|
res.incorr(trial,1) = 1; % note trial as incorrect
|
|
res.incorr(trial,1) = 1; % note trial as incorrect
|
|
|
|
|
... | | ... | |