How to group dynamically different fields from a structure ?
Mostrar comentarios más antiguos
Hello,
I'm analyzing different type of data (EMG, torque), which is regroup in different fields (257) divided into 8 channels. I want to group different channels by record with a loop to create 1 variable with the different type of data.
By example, I tested with this type of loop but it doesn't work. There are 36 records, so i would like to have a loop for all these records.
Thank you for your help
data=load('labchart.mat');
data.data__chan_1_rec_1 %strucutre syntax
for i=1
triggerPNS=(data.data__chan_1_rec_(i));
triggerTMS=(data.data__chan_2_rec_(i));
torque=(data.data__chan_3_rec_(i));
emgVL=(data.data__chan_5_rec_(i));
emgRF=(data.data__chan_6_rec_(i));
emgVM=(data.data__chan_7_rec_(i));
end
fichier1= cat(2,triggerPNS,triggerTMS,torque,emgVL,emgVM,emgRF);
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Structures en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!