![matlab 2008 script matlab 2008 script](https://i.ytimg.com/vi/8y3iAgiHEFo/maxresdefault.jpg)
The following sections explain line by line how they work and how to edit them.Īll the lines starting with a "%" are comments, they are never executed. The script you just generated can be the starting point to your own custom script.Close the pipeline editor window and look at the script. m file and opens it in the Matlab editor. This will apply a low-pass filter at 30Hz and save a screen capture of the signals in the report.ĭo not run the pipeline, select the menu Generate.We expect to get two files: the averages of the deviant condition for both runs.Īdd process Pre-process > Band-pass filter: Lower cutoff= 0Hz, Upper cutoff= 30Hz, 60dB.Īdd process File > Save snapshot: Recordings time series, Sensors=MEG. This process selects all the recordings with a comment including the string "Avg: deviant", from all the folders in Subject01 (except for "Intra-subject" and "Common files").Subject= Subject01, Condition=, File name= Avg: deviant (the space is important).
![matlab 2008 script matlab 2008 script](https://climate.copernicus.eu/sites/default/files/inline-images/MATLAB_2_0.png)
Select process File > Select files: Recordings (do not execute immediately)
![matlab 2008 script matlab 2008 script](https://labrown293.weebly.com/uploads/1/2/4/8/124896084/784903346.png)
Instead of selecting the files from the Brainstorm interface, we will select them directly from the database using a script. In the Process1 tab, leave the selection box empty and click on.The example below should work with the protocol "TutorialIntroduction" created during the introduction tutorials. Select some files in the Process1 or Process2 tabs, select a list of processes, and use the menu Generate. The easiest way to get started with a new Brainstorm script is to use the script generator, already introduced in the tutorial Select files and run processes.