Hi there... I'm Ahmed..
I'm a biomedical Engineer and I have worked in many projects related to biomedical signal analysis and interpretation in MATLAB, I've been working on MATLAB for nearly 5 years so for and I have done a lot of researches,
EMG in specific, a work was done to cross correlate the EMG signal to the ECoG signal for the 5 fingers movements and another work just to move a motor with a threshold, the later is slightly simpler but it was in EMG, and the signal was noisy, so it had to be filtered first to do the later processes..
I hope you find this interesting, I' m looking forward to see you in the Chat,
Best Regards