Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 3bec97c

Browse files
author
ccn.berkeley
committedNov 5, 2016
ask for questions
1 parent 627abd5 commit 3bec97c

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed
 

‎ProbabilisticSwitching/practice_phase.m

+12
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@
5757

5858
% Phase 2: Right box magical (det.; 5 trials); then left box (det.; 5 trials)
5959
clearpict(exp.buffer.message)
60+
preparestring('Do you have any questions?', exp.buffer.message, 0, 250)
61+
drawpict(exp.buffer.message)
62+
wait(300);
63+
waitkeydown(inf)
6064
preparestring('Sometimes, the magical box switches sides!', exp.buffer.message, 0, 200)
6165
preparestring('Try finding the magical box again!', exp.buffer.message, 0, 150)
6266
drawpict(exp.buffer.message)
@@ -89,6 +93,10 @@
8993

9094
% Phase 3: Add stochastisity (identical to the true task)
9195
clearpict(exp.buffer.message)
96+
preparestring('Do you have any questions?', exp.buffer.message, 0, 250)
97+
drawpict(exp.buffer.message)
98+
wait(300);
99+
waitkeydown(inf)
92100
preparestring('Sometimes, even the magical box does not have a coin.', exp.buffer.message, 0, 200)
93101
preparestring('This makes it harder to find it.', exp.buffer.message, 0, 150)
94102
preparestring('Can you still find the magical box?', exp.buffer.message, 0, 100)
@@ -121,6 +129,10 @@
121129

122130
%% Instructions for the real task
123131
clearpict(exp.buffer.message)
132+
preparestring('Do you have any questions?', exp.buffer.message, 0, 200)
133+
drawpict(exp.buffer.message)
134+
wait(300);
135+
waitkeydown(inf)
124136
preparestring('Try your best to find as many coins as you can!', exp.buffer.message, 0, 100)
125137
drawpict(exp.buffer.message)
126138
wait(300);

‎ProbabilisticSwitching/prob_switch.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
% versus absence from shift?
1010

1111
%% Define variables here during testing
12-
exp.subj = input('Subject ID: \n', 's');
12+
exp.subj = input('Subject ID: \n\n', 's');
1313

1414
%% Run the task
1515
init_prob_switch;

0 commit comments

Comments
 (0)
Please sign in to comment.