Skip to content

Commit

Permalink
INITIAL
Browse files Browse the repository at this point in the history
  • Loading branch information
tiborauer committed Aug 29, 2018
1 parent d699980 commit 8b416c4
Show file tree
Hide file tree
Showing 282 changed files with 35,148 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Session_Paradigm.par
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;]
35 changes: 35 additions & 0 deletions extra/nfb_featref.m
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')
14 changes: 14 additions & 0 deletions gui/gui_close.m
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 added gui/gui_copy.fig
Binary file not shown.
Loading

0 comments on commit 8b416c4

Please sign in to comment.