dot indexing is not supported for this variable .

조회 수: 1 (최근 30일)
arunnagiri murrugesan
arunnagiri murrugesan 2019년 1월 6일
댓글: Andrei Bobrov 2019년 1월 6일
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
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

카테고리

Help CenterFile Exchange에서 App Building에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by