Running script: tutorial_hcp.m

Hi all,
Sorry for the silly question. I am new to brainstorm and Matlab language.
I want to use script 'tutorial_hcp.m'. But I got the error message:

The first argument must be the full path to the tutorial dataset folder.'.

I set it like this before executing m.file,
tutorial_dir = 'C:\Users\neudo\Documents\brainstorm3\tutorial_dir\175237'.

What is my mistake or how can pass the directory path into the function? and How I can apply the EEG resting state on the same script, what should I consider?

Tutorial Human Connectome Project: Resting-state MEG

Script

Path and files included

Thank You,
Chanda.

Hi @chanda,

The tutorial_hcp.m script is a function, it should be executed in Matlab's Command Window as :

>> tutorial_dir='PATH_UNZIPPED_TUTORIAL_DATASET';
>> tutorial_hcp(tutorial_dir);

Some info regarding functions in Matlab: https://www.mathworks.com/help/matlab/ref/function.html

Best,
Raymundo

1 Like

Hi @Raymundo.Cassani,

Thanks for the help, it worked.

Best,
Chanda.