Cell array for indexing
Show older comments
Hello
I want to store 38 channels EEG data in a cell array
my code is working with one channel only hoe can i save my 38 cahnnels data in 38 rows of cells array
a=data.signal(:,:); a=a'; % 38 channels EEG signals
x=1;
y=3;
for k=1:1:(length(new_positions)/3)
new_signal{k}=a(new_positions(x):new_positions(y),1) % new_position is indexing matrix
x=x+3;
y=y+3;
end
its only returing 86x1 cell array instead i need 86x38 cell array
Accepted Answer
More Answers (0)
Categories
Find more on EEG/MEG/ECoG 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!