MATLAB Answers

0

dot indexing is not supported for this variable .

Asked by arunnagiri murrugesan on 6 Jan 2019
Latest activity Commented on by Andrei Bobrov
on 6 Jan 2019
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 Comment

S = eeg_c(:,:,1).';

Sign in to comment.

1 Answer

Answer by madhan ravi
on 6 Jan 2019

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 Comments

Sign in to comment.