Skip to content

Commit 6493c92

Browse files
authored
Merge pull request #29 from JohnAtl/patch-5
Update ML_06_Haxby_Scripting.rst
2 parents 83dd75d + 4a48ad3 commit 6493c92

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

docs/ML/ML_Short_Course/ML_06_Haxby_Scripting.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,12 @@ When the script has finished running for subjects 2, 3, 4, and 6, the only subje
8787
Editing the MVPA Scripts
8888
************************
8989

90-
The changes to the MVPA scripts are similar to the edits for the preprocessing. At the beginning of the script we will declare our for-loop:
90+
The changes to the MVPA scripts are similar to the edits for the preprocessing. At the beginning of the ``Haxby_MVPA_ROI`` script we will declare our for-loop:
9191

9292
::
9393

94+
subjects = [1 2 3 4 5 6];
95+
9496
for subject=subjects
9597
9698
subject = num2str(subject);
@@ -105,7 +107,9 @@ And then change the code for setting the results and beta maps directories:
105107
% Set the filepath where your SPM.mat and all related betas are, e.g. 'c:\exp\glm\model_button'
106108
beta_loc = [pwd '/SPM_Results_' subject];
107109
108-
And run the script from the terminal. As an exercise, when it has finished modify the script again to do a searchlight analysis for all of the subjects, using the methods you learned in the last chapter. A template script can be downloaded `here <https://github.com/andrewjahn/MachineLearning>`__, under the file ``Haxby_MVPA_Scripted``.
110+
Also, add an ``end`` at the end of the file.
111+
112+
And run the script from the terminal. As an exercise, when it has finished modify the script again to do a searchlight analysis for all of the subjects, using the methods you learned in the last chapter. A template script can be downloaded `here <https://github.com/andrewjahn/MachineLearning>`__, under the file ``Haxby_MVPA_ROI_Scripted``.
109113

110114
Next Steps
111115
**********

0 commit comments

Comments
 (0)