-
Notifications
You must be signed in to change notification settings - Fork 0
/
run_FAST_fmri_main.m
108 lines (80 loc) · 3.99 KB
/
run_FAST_fmri_main.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
seeds_rand = wgdata.seeds;
%% LAPTOP1 - Resting & Word Generation ====================================
% fast_fmri_resting(0.01,'test'); % practice resting
fast_fmri_word_generation('' ,'practice'); % recording test
%% first time
fast_fmri_resting(6,'biopac','eye'); % 6 min resting
% fast_fmri_resting(0.2,'biopac'); % 6 min resting
%% WORD GENERATION + 2m RESTING
fast_fmri_word_generation(seeds_rand,'biopac','eye');
% fast_fmri_word_generation(seeds_rand,'eye');
%% THINKING AND RATING
[ts, isi_iti] = fast_fmri_generate_ts;
fast_fmri_task_main(ts, isi_iti,'biopac','eye');
% fast_fmri_task_main(ts, isi_iti);
%% LAPTOP2 - Transcribe ===================================================
fast_fmri_transcribe_responses('nosound') % while running fast_fmri_word_generation
%%
fast_fmri_transcribe_responses('only_na') % after running fast_fmri_word_generation
%%
fast_fmri_transcribe_responses('response_n', [8]) % playing sound only a few specific trials
%% if you want to revise already written items.
savedir = fullfile(pwd, 'data');
SID = sprintf('F087');
SessID = input('Session number? ', 's');
save(fullfile(savedir, ['b_responsedata_sub' SID '_sess' SessID '.mat']),'response');
%%
N = input('수정할 행? ','s');
content = input('수정할 내용? ','s');
dat_file = fullfile(savedir, ['b_responsedata_sub' SID '_sess' SessID '.mat']);
load(dat_file);
response{str2double(N),1} = content;
save(fullfile(savedir, ['b_responsedata_sub' SID '_sess' SessID '.mat']),'response');
% save(fullfile(savedir, ['d_surveydata_subF073.mat']),'survey');
%% SURVEY
words = fast_fmri_wholewords; % subjectID = F010
fast_fmri_survey(words);
%% RUN ONCE for the experiment
rng('shuffle');
seeds = {'학대', '거울', '눈물','가족'};
seeds_rand = seeds(randperm(numel(seeds)))
% seeds_rand = {'눈물','가족','학대','거울'};
%% SEEDWORDS for 2ND PARTICIPATION
i = 21;
seeds_rand = {'환상' '아픔' '마음' '사랑'; %1
'사랑' '아픔' '환상' '마음';
'사랑' '환상' '아픔' '마음';
'환상' '아픔' '마음' '사랑';
'마음' '아픔' '환상' '사랑';
'아픔' '사랑' '환상' '마음'; % F058
'사랑' '마음' '환상' '아픔'; % F059
'환상' '아픔' '사랑' '마음'; % F061
'사랑' '마음' '아픔' '환상'; % F067
'마음' '환상' '사랑' '아픔'; % 69
'환상' '사랑' '마음' '아픔'; % 70
'환상' '사랑' '아픔' '마음'; % 74
'마음' '아픔' '사랑' '환상'; % 76
'환상' '마음' '사랑' '아픔'; % 78
'아픔' '마음' '환상' '사랑'; % 79
'사랑' '아픔' '마음' '환상'; % 80
'마음' '사랑' '환상' '아픔'; % 81
'아픔' '환상' '사랑' '마음'; % 84
'아픔' '사랑' '마음' '환상'; % 85
'마음' '환상' '아픔' '사랑'; % 86
'사랑' '환상' '마음' '아픔'; % 87
'환상' '마음' '아픔' '사랑';
'마음' '사랑' '아픔' '환상';
'아픔' '마음' '사랑' '환상';
'사랑' '마음' '환상' '아픔';
'환상' '마음' '사랑' '아픔';
'마음' '아픔' '사랑' '환상';
'환상' '아픔' '사랑' '마음';
'사랑' '환상' '아픔' '마음';
'아픔' '마음' '환상' '사랑';
'아픔' '환상' '마음' '사랑';
'마음' '아픔' '환상' '사랑';
'아픔' '환상' '사랑' '마음';
'환상' '사랑' '마음' '아픔';
'마음' '아픔' '사랑' '환상';
'사랑' '마음' '아픔' '환상'}; % 35
seeds_rand = seeds_rand(i,:)