-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathupdate_parameters.m
20 lines (14 loc) · 1.07 KB
/
update_parameters.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
% Update the handles structure after button press
function handles = update_parameters(handles, cur_batch)
handles.batch_data(cur_batch).curslice = str2num(get(handles.slice_num, 'String'));
handles.batch_data(cur_batch).data_order = get(get(handles.data_order,'SelectedObject'),'Tag');
handles.batch_data(cur_batch).fit_type = get(get(handles.fit_type,'SelectedObject'),'Tag');
handles.batch_data(cur_batch).odd_echoes = get(handles.odd_echoes, 'Value');
handles.batch_data(cur_batch).output_basename = get(handles.output_basename, 'String');
handles.batch_data(cur_batch).parameters = str2num(get(handles.te_box, 'String'));
handles.batch_data(cur_batch).rsquared = str2num(get(handles.rsquared_threshold, 'String'));
handles.batch_data(cur_batch).tr = str2num(get(handles.tr, 'String'));
handles.batch_data(cur_batch).fit_voxels = get(handles.fit_voxels, 'Value');
handles.batch_data(cur_batch).xy_smooth_size = str2num(get(handles.smooth_size, 'String'));
% handles.batch_data(cur_batch).file_list = handles.file_list;
handles.batch_data(cur_batch).roi_list = handles.roi_list;