How to concatenate elements of a cell array
Show older comments
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
Accepted Answer
More Answers (0)
Categories
Find more on Timing and presenting 2D and 3D stimuli in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!