Offline Analysis
Posted: 10 Mar 2011, 12:37
Hello,
I am a beginner of the BCI research. I have some questions about the BCI2000 Offline Analysis tool. I am trying to compute the r value by using directly the matlab functions. My aim is to recreate the same plot that I generate with the Offline Analysis tool. The following steps describe what I did:
- I used the StimulusPresentation application to generate 4 training files (.dat);
- I imported one training files in matlab;
- I extracted from the data matrix five matrix (4000samplesX14channels) for every stimulus(just for the motion of the left and right arm);
- I converted every matrix into the frequency domain using the mem file ([spectrum, frequencies] = mem(A(:,:), [16 0 140 2 15 0 2000]) where A is 4000samplesX14channels);
- I computed the average of the five matrix (for every stimulus, so now I have 2 matrix 71binsX14channels );
- I repeated these steps for the other *dat files(I did 4 training session)
- In matlab I created two matrix: left and right related respectively to the motion of the left and right arms. Where left(71,14,trial)=spectrum_left(trial) and right(71,14,trial)=spectrum_right(trial);
- I used calc_rsqu.m (OfflineAnalysis folder) to compute the rsqu value(I have not found the rvalue.m file) [ressq, amp1, amp2] = calc_rsqu(left, right, 1) where the matrix left and right are (71binsX14channelsX4trials) ;
- I displayed it: figure, imagesc(1:71,1:14,flipud(ressq')).
Does this procedure have any sense? My problem is that the image that I display is different from the image that I display using the Offline Analysis tool. Do you have any suggestion?
Sorry if I have not been so clear!
I am a beginner of the BCI research. I have some questions about the BCI2000 Offline Analysis tool. I am trying to compute the r value by using directly the matlab functions. My aim is to recreate the same plot that I generate with the Offline Analysis tool. The following steps describe what I did:
- I used the StimulusPresentation application to generate 4 training files (.dat);
- I imported one training files in matlab;
- I extracted from the data matrix five matrix (4000samplesX14channels) for every stimulus(just for the motion of the left and right arm);
- I converted every matrix into the frequency domain using the mem file ([spectrum, frequencies] = mem(A(:,:), [16 0 140 2 15 0 2000]) where A is 4000samplesX14channels);
- I computed the average of the five matrix (for every stimulus, so now I have 2 matrix 71binsX14channels );
- I repeated these steps for the other *dat files(I did 4 training session)
- In matlab I created two matrix: left and right related respectively to the motion of the left and right arms. Where left(71,14,trial)=spectrum_left(trial) and right(71,14,trial)=spectrum_right(trial);
- I used calc_rsqu.m (OfflineAnalysis folder) to compute the rsqu value(I have not found the rvalue.m file) [ressq, amp1, amp2] = calc_rsqu(left, right, 1) where the matrix left and right are (71binsX14channelsX4trials) ;
- I displayed it: figure, imagesc(1:71,1:14,flipud(ressq')).
Does this procedure have any sense? My problem is that the image that I display is different from the image that I display using the Offline Analysis tool. Do you have any suggestion?
Sorry if I have not been so clear!