How to concatenate elements of a cell array
Afficher commentaires plus anciens
I have a cell array containing 61 cells of 30 second audio data: stimuli = {1,1 1,2 1,3...}. I want to concatenate the cells i.e cell 1 and 2, 3 and 4... and so on, so at the end I have cells of 60 seconds data.
I tried the following code, but it does not work! I'd appreciate your help! Thank you!
stimdata = cell(1,31);
for i=size(stimuli,2)-1
stimdata{i} = stimuli{1,i},stimuli{1,i}+1
cnt = cnt+2;
end
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Timing and presenting 2D and 3D stimuli dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!