Hello to everyone,
I import my continuous data using a .mat file with [Chan x Time], and I add event also with a .Mat.
When I import the data the sampling frequency by default is set at 1000Hz, but my recorded is in 1024Hz, how to change 1000hz to 1024Hz to match sample and time.
Thank you
Hi Alex,
When you're importing or reviewing as raw your data, make sure you select from the dropdown the file format "EEG: Matlab matrix (*.mat)". With this format selected, when you select your file a popup menu with options will appear. You can change the sampling rate from there:

I hope this helps,
Martin
Oh tank you, actually I was using the pipeline scripting so I didn’t have this window …
Can you tell me the scripting function associated to this process ?
Or how can I set the sampling frequency using
% Process: Import MEG/EEG: Time sFiles = bst_process('CallProcess', 'process_import_data_time', sFiles, [], ... 'subjectname', SubjectNames{1}, ... 'condition', CondName, ... 'datafile', {RawFiles{1}, 'EEG-MAT'}, ... 'timewindow', [], ... 'split', 0, ... 'ignoreshort', 1, ... 'channelalign', 1, ... 'usectfcomp', 1, ... 'usessp', 1, ... 'freq', [], ... 'baseline', []);
I try to change freq, but no changes.
So many thanks
You can set the import options manually from your script before you call the import process:
ImportEegRawOptions = bst_get('ImportEegRawOptions');
ImportEegRawOptions.SamplingRate = 1024;
bst_set('ImportEegRawOptions', ImportEegRawOptions);
bst_process(...
Cheers,
Martin
Dear Martin,
It works !!! 
Thank you so much
1 Like