i have a data of 1152*3*140 trials(where 1152 is no of sample points , 3 is no of channels ,140 is no of trials) of two classes of elements , i need to separate each class indivdually for particular trials of each channel ? like 1152*1*no of trials
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
arunnagiri murrugesan
el 13 de Sept. de 2018
Comentada: arunnagiri murrugesan
el 16 de Sept. de 2018
please provide code for separating each class.
0 comentarios
Respuesta aceptada
ANKUR KUMAR
el 14 de Sept. de 2018
A=rand(1152,3,140);
AA=arrayfun(@(x) squeeze(A(:,x,:)),1:size(A,2),'uni',0);
AA splits A into three parts, each of dimension 1152*140.
Más respuestas (0)
Ver también
Categorías
Más información sobre Matrix Indexing en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!