dot indexing is not supported for this variable .
1 次查看(过去 30 天)
显示 更早的评论
for i = 1:40
test = eeg_c(i,:,1);
y = test.y(1:1000,1); % error occuring in this line how to rectify it ?
S(:,i) = y;
end
eeg_c size is (40*1000*5)
回答(1 个)
madhan ravi
2019-1-6
See if the below does what you want(else let know of your final result size expected), also suspect loop is not needed to achieve what you want:
S=zeros(1000,40); % preallocate
for i = 1:40
test = eeg_c(i,:,1);
S(:,i) = test;
end
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Structures 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!