I have a matrix of 3000x6000. Also I have some values which I treated as nose_pokes. From every nose poke value I want two things.
1) 50 columns before nose poke I want to add them and then take an average of them which in result give me a matrix of 3000x1(which becomes base line of my signal).
2) After each nose poke I have to take 100 columns and subtract the baseline from all columns one by one and rest of the data remains same.
I write down some code but I am unable to perform this task can any body help me.
I want to upload file but its too big I can't upload.
fileread = csvread('Data190409_224329trial_rec_data.csv');
for ki= 1:1:(size(nose_pok,2)-1)
base_rec_range = subdat1(:,qw1:qw2);
sum = sum + base_rec_range(:,m);
for index = 1:length(nose_pok)