how to vectorize this code?
Show older comments
while b < (length(data))
ECG(i,:) = data(f:b);
f = f+477;
b=b+477;
i= i+1;
end
2 Comments
Birdman
on 11 Jan 2018
What do you try to do? Is this the entire code?
Parsa Paiman
on 11 Jan 2018
Accepted Answer
More Answers (1)
Walter Roberson
on 11 Jan 2018
Perhaps
ECG = reshape(data, 477, :).';
1 Comment
Parsa Paiman
on 11 Jan 2018
Categories
Find more on ECG / EKG 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!