lisa
lisa

Reputation: 41

Averaging periodic signal

I have a signal that repeats periodically as the one attached in the figure (the same pattern repeats 4 times). I would like to create a template of this signal as the averaging of the 4 repetitions. Which is the best approach for my problem? I know the answer might be obvious to experts in signal processing, I have tried searching for signal folding techniques but couldn't find anything useful. I am prototyping it in Matlab.

enter image description here

Upvotes: 1

Views: 366

Answers (1)

Daniel
Daniel

Reputation: 36710

Assuming your signal length is dividable by 4 and each of the repetitions is 1/4th of this, simply use:

mean(reshape(signal,[],4),2)

reshape puts each repetition into one column, then the mean over all columns is calculated.

Upvotes: 1

Related Questions