Questions about eeg simulation

Hi

Francois i’m trying to call the bst_simulation, i’m using the next code line:

bst_simulation(’/Users/me/Documents/Msc/data12year_DPA/@default_study/headmodel_surf_openmeeg.mat’);

the process start to run however in the line 56 of bst_simulation

[iDS, iResult]=bst_memory“‘LoadResultsFileFull’, ResulstsFile);

give me always the next error:

Line 851: Undefined function or variable “isLink”

Call stack:

>bst_memory.m>LoadResultFIle at 851
>bst_memory.m>LoadResultsFileFull at 1091
>bst_call.m at 26
>macro_methodcall.m at 37
>bst_memory.m at 71
>bst_simulation.m at 56

so after of that iDS is empty so in the next line

if isempty(iDS)
return
end

send me out throw me out of the code.

I would like to know what is the correct nomenclature for:

the input: ResultFile for to use

newDataFile= bst_simulation(ResultsFile,iVertices);

Cheers