HOW SHOULD I REPEAT THE ECG WAVEFORM BY USING A "FOR "LOOP STATEMENT?

i already have generated ecg waveform & want to repeat that by using a for loop statement.plz help me out.

Answers (1)

You don't need a for loop
Y=rand(1,30) % Y your ecg signal
n=10 % n number of repetitions
Yr = repmat(Y,1,n)

Asked:

on 23 Oct 2012

Community Treasure Hunt

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

Start Hunting!