Dear Laure, thank you for your reply, but I did not get what I have to download to see if it is working with my participants :D Sorry! Claudia
Thank you a lot I will definitely do it! Best, Claudia
UPDATE: I solved this issue like this: (I guess it is not possible to do it with matlabbatch from the command line..) filename = [Sourcedir,'data_ID_', num2str(sub), '_', num2str(n_rec), '.mat']; options = struct('overwrite', false); import = {struct('type', 'ecg', 'channel', 1, 'sr', 1024),... struct('type', 'custom', 'channel', 2, 'sr', 1024),... struct('type', 'marker', 'channel', 3, 'sr', 1024)}; imported_file = pspm_import(filename, 'mat', import, options); I actually have also another problem....
I actually have also another problem. I am used to spm and I usually set up a batch from the GUI and then I change all the field I need to change for every participants in a loop. I don't know whether this is possible with pspm too. This is my script to import data: clear all; % Add pspm path pspm_path = 'C:\toolbox\'; addpath ( pspm_path ); %% IMPORT AS PSPM.MAT Sourcedir_batches = 'X:\Clau\State-dependet_opioid_modulation\ANALYZED\ANALYZED_HR_prova\HR_finaldata\batch\'; Sourcedir = 'X:\Clau\State-dependet_opioid_modulation\ANALYZED\ANALYZED_HR_prova\HR_finaldata\';...
I actually have also another problem. I am used to spm and I usually set up a batch from the GUI and then I change all the field I need to change for every participants in a loop. I don't know whether this is possible with pspm too. This is my script to import data: clear all; % Add pspm path pspm_path = 'C:\toolbox\'; addpath ( pspm_path ); %% IMPORT AS PSPM.MAT Sourcedir_batches = 'X:\Clau\State-dependet_opioid_modulation\ANALYZED\ANALYZED_HR_prova\HR_finaldata\batch\'; Sourcedir = 'X:\Clau\State-dependet_opioid_modulation\ANALYZED\ANALYZED_HR_prova\HR_finaldata\';...
I actually have also another problem. I am used to spm and I usually set up a batch from the GUI and then I change all the field I need to change for every participants in a loop. I don't know whether this is possible with psps too. This is my script to import data: clear all; % Add pspm path pspm_path = 'C:\toolbox\'; addpath ( pspm_path ); %% IMPORT AS PSPM.MAT Sourcedir_batches = 'X:\Clau\State-dependet_opioid_modulation\ANALYZED\ANALYZED_HR_prova\HR_finaldata\batch\'; Sourcedir = 'X:\Clau\State-dependet_opioid_modulation\ANALYZED\ANALYZED_HR_prova\HR_finaldata\';...
Yes of course! I am sure I put something wrong but I am new to this toolbox and I cannot find what is the problem. My original files where in .Poly5 format so I readjusted them in single .mat files per subject. Attached you can find one of this .mat files. The first column contained ECG data, the second one is timepoints and the third one is the marker channel. Thank you for the help! Claudia
Yes of course! I am sure I put something wrong but I am new to this toolbox and I cannot find what is the problem. My original files where in .Poly5 format so I readjusted them in single .mat files per subject. Attached you can find one of this .mat files. Thank you for the help! Claudia