Matlabsignalprocessing module, incoming signal readings
Posted: 20 Oct 2016, 11:15
Hello,
i am trying to apply my own filter to the signal obtained from BCI2000 with the MatlabSignalProcessing module. However i am not sure own how does the signal income work.
Lets assume i have defined BlockSize=3 and ChannelNumber=4. This means that there are 4 channels transmiting and that there are 3 samples transmitted each time, if i am correct.
I guess than each sample has information from the 4 channels, so a block would be composed of 4x3 matrix.
I want to access all the information from a block in BCIProcess ( a function that MatlabSignalProccesing module does use to process each block).
So, on how i think information is stored, could be viewed this way:
Block:
Sample1 Sample2 Sample3
Ch1 a a' a''
Ch2 b b' b''
Ch3 c c' c''
Ch4 d d' d''
I am trying this:
for j=1:length(in_signal(1,:)) %For each sample of the block(3)
s = in_signal(:,j); % Read all the info from the sample (should be 4, the number of channels)
And this way i would expect to get (in this order):
a b c d ;
a' b' c' d';
a'' b'' c'' d''
But this is not working, so info must be stored in another way.
Could someone explain it to me?
Another question i have, is that what is the difference between:
in_signal(1,:)
in_signal(2,:)
Seems there are 2 in_signal channels but i am not sure how they work. I have not found any useful documentation on this matter.
i am trying to apply my own filter to the signal obtained from BCI2000 with the MatlabSignalProcessing module. However i am not sure own how does the signal income work.
Lets assume i have defined BlockSize=3 and ChannelNumber=4. This means that there are 4 channels transmiting and that there are 3 samples transmitted each time, if i am correct.
I guess than each sample has information from the 4 channels, so a block would be composed of 4x3 matrix.
I want to access all the information from a block in BCIProcess ( a function that MatlabSignalProccesing module does use to process each block).
So, on how i think information is stored, could be viewed this way:
Block:
Sample1 Sample2 Sample3
Ch1 a a' a''
Ch2 b b' b''
Ch3 c c' c''
Ch4 d d' d''
I am trying this:
for j=1:length(in_signal(1,:)) %For each sample of the block(3)
s = in_signal(:,j); % Read all the info from the sample (should be 4, the number of channels)
And this way i would expect to get (in this order):
a b c d ;
a' b' c' d';
a'' b'' c'' d''
But this is not working, so info must be stored in another way.
Could someone explain it to me?
Another question i have, is that what is the difference between:
in_signal(1,:)
in_signal(2,:)
Seems there are 2 in_signal channels but i am not sure how they work. I have not found any useful documentation on this matter.