function StudyArgs = load_study(studyFile,model)
    studyID = strrep(studyFile,'.mat','');
    display(['LOAD STUDY ' studyID]);

    global SVMCROSSVAL_STUDYDIR;
    StudyArgs = load(fullfile(SVMCROSSVAL_STUDYDIR,studyFile));

    set(model.txtBaseDir,'String',StudyArgs.baseDir);
    set(model.txtStudyID,'String',studyID);
        
    set(model.subjectSelector,'String',StudyArgs.subjectSelectString);
    set(model.subjectSelector,'UserData',StudyArgs.subjectSelectString);
    set(model.subjectSelector,'Value',StudyArgs.subjectSelectValue);
    
    set(model.txtClassDef,'String',StudyArgs.classdefString);
    
    set(model.txtPSTHStart,     'String',sprintf(StudyArgs.pststart));
    set(model.txtPSTHEnd,       'String',sprintf(StudyArgs.pstend));
    set(model.txtBaselineStart, 'String',sprintf(StudyArgs.baselinestart));
    set(model.txtBaselineEnd,   'String',sprintf(StudyArgs.baselineend));
    set(model.txtTrFactor,      'String',sprintf(StudyArgs.trfactor));
    set(model.labelTR,          'String',sprintf(StudyArgs.trlabel));
    
    set(model.imageTypeSelection, 'String'  ,StudyArgs.imageTypeSelectionString);
    set(model.imageTypeSelection, 'UserData',StudyArgs.imageTypeSelectionString);
    set(model.imageTypeSelection, 'Value'   ,StudyArgs.imageTypeSelectionValue);
    
    set(model.txtVoxelDef,'String',StudyArgs.voxelString);
    
    set(model.selNormPST,       'Value',StudyArgs.selNormPSTValue);
    set(model.chkColBias,       'Value',StudyArgs.chkColBiasValue);
    set(model.selRoiGrouping,   'Value',StudyArgs.roiGroupingValue);
    
    %%%% 
    
    set(model.txtFrameShiftStart,'String', StudyArgs.frameshiftstart );
    set(model.txtFrameShiftEnd,'String',StudyArgs.frameshiftend);
    set(model.txtFrameShiftDur,'String',StudyArgs.frameshiftdur);
    
    set(model.selTimeframeGrouping,'Value',StudyArgs.timeframeGroupingValue);

    set(model.txtSVMopts,'String',StudyArgs.svmoptstring );
    set(model.txtSVMnfold,'String',StudyArgs.svmnfold );
    set(model.chkSVMrnd,'Value',StudyArgs.svmrnd );

    set(model.txtSomM,'String',StudyArgs.somM);
    set(model.txtSomN,'String',StudyArgs.somN);
    set(model.selSomLattice,'Value',StudyArgs.latticeModelValue);
    set(model.txtSOMnfold,'String',StudyArgs.somnfold );

    set(model.txtSearchlightRadius,'String',StudyArgs.searchlightradius );
    set(model.txtSearchlightTimeline,'String',StudyArgs.searchlightTimeline);

end