Hi , i am currently working on motor imagery BCI (Brain Computer Interface). I am completely new to this field. I had downloaded data from BCI competition IV (data set -2-b, Left hand and right hand class ). I extracted alpha(8-12)Hz and beta( 14-30) Hz signal using band pass filter for C3 and C4 electrods for different trials , then i calculated average power for all trials. But i dont know how to calculate Event related desynchronization/synchronization ( ERD/ERS) in MATLAB. i dont know ho to calculate baseline power and change in relative power of %ERD/ERS. Can any body tell me how to do in MATLAB, please ?