Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

make movie off lags of xcorr and bar3(c)

1 visualización (últimos 30 días)
N
N el 29 de Ag. de 2014
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
Hi everybody, I have an idea of what I want but I have no idea if this is really possible. Hopefully somebody can help. I have two datasets, one consisting of 90 EMG channels and the other of 1 kinematic signal. I do for each EMG channel a xcorr with the kinematic signal and then find the max correlation. So at the end I have 90 maximum crosscorrelation numbers. This is fine and works good. I then make it in a nice rectangle with bar3(c)(9 rows, 4 columns with color changing with height of number) because this is how the electrodes were placed in real life. So far so good... Now, I would like to take into consideration also the lag of each correlation point. For this I thought to make a movie of the rectangle that would show for each lag (from lowest to highest)when the highest correlation happens for a certain signal. Does anybody if this is even possible and if so, how ?
My code so far:, so I have the lags and the max. correlation numbers and I can place it in anice graph. But how to make it in a movie?
for i = 1: 90
corr = xcov(emg2{1,1}(:,i),data.pg2{1,1},'coeff');
[maximum2(i) lags(i)] = max(abs(corr));
end
extensors =[maximum(1:5);maximum(6:10);maximum(11:15);maximum(16:20);maximum(21:25);maximum(26:30);maximum(31:35);maximum(36:40);maximum(41:45)];
flexors =[maximum(46:50);maximum(51:55);maximum(56:60);maximum(61:65);maximum(66:70);maximum(71:75);maximum(76:80);maximum(81:85);maximum(86:90)];
figure (1)
subplot(1,2,1);
h1 = bar3(extensorlag,extensors);

Respuestas (0)

La pregunta está cerrada.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by