-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
282 changed files
with
35,148 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[PARADIGM] | ||
ref_GLM[s]=block | ||
% Conditions | ||
Conditions[e]={ 'A';'D';'FB';'NE' } | ||
% Condition Duration (s) in mathing order | ||
ConditionTimes[e]=[12 0 6 1] | ||
% Condition Sequence | ||
ConditionSequence[e]={'FB'; 'NE'; 'A'; 'FB'; 'NE'; 'A'; 'FB'; 'NE'; 'A'; 'FB'; 'NE'; 'A'; 'FB'; 'NE'} | ||
% ISI (s) | ||
ISI[e]=[0; 11; 0; 0; 11; 0; 0; 11; 0; 0; 11; 0; 0; 11;] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
function nfb_featref(study, vol, tr) | ||
TrDIR = sprintf('Z:\\siemens\\%s\\vol_%d\\results\\RealTimeData',study,vol); | ||
d = dir(TrDIR); | ||
isfound = false; | ||
for i = 3:numel(d) | ||
if strfind(d(i).name,sprintf('tr%d_out',tr)) | ||
isfound = true; | ||
break; | ||
end | ||
end | ||
if ~isfound, error(sprintf('%d. training not found in %s',tr, TrDIR)); end | ||
|
||
TrDIR = fullfile(TrDIR,d(i).name); | ||
|
||
rtconfig = IniFile(fullfile(TrDIR,'rtconfig.txt')); | ||
ref = nfb_reference(rtconfig.reference); | ||
vec = ref.vec; | ||
|
||
act = vec.active_vector; | ||
act(isnan(act)) = 0; | ||
act = horzcat(act, zeros(1,5)); | ||
dlmwrite('featref_think',act,'\n') | ||
|
||
act_fb = horzcat(zeros(1,5), act); | ||
act_fb = act_fb(1:185); | ||
dlmwrite('featref_think-fb',act_fb,'\n') | ||
|
||
cont = horzcat(zeros(1,10), act); | ||
cont(11:15) = 1; | ||
cont = cont(1:185); | ||
dlmwrite('featref_count',cont,'\n') | ||
|
||
cont_fb = horzcat(zeros(1,5), cont); | ||
cont_fb = cont_fb(1:185); | ||
dlmwrite('featref_count-fb',cont_fb,'\n') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
function gui_close | ||
% User-defined GUI close request function | ||
% to display a question dialog box | ||
% Save and Load are possible | ||
selection = questdlg('All unsaved changes will be lost. Are you sure?',... | ||
'Close Request',... | ||
'Yes','No','Yes'); | ||
switch selection, | ||
case 'Yes', | ||
uiresume(gcf) | ||
case 'No' | ||
return | ||
end | ||
end |
Binary file not shown.
Oops, something went wrong.