Finding peaks in signal

Given some signal data sampled at 10Hz in .csv file and expected mean of the signal (a single value)
But the signal provided consists of desired signal(true signal) and an unknown bias characterized by this equation
y(t) = x(t) + at
How to remove the bias from the given y(t) data available in .csv file and find peaks without using the inbuilt findpeaks() function?

1 Comment

Pradeep Machiraju why do you now say that this is not appropriate for MATLAB Answers?
It is MATLAB related, and you did ask an actual question.

Sign in to comment.

Answers (2)

Steven Lord
Steven Lord on 10 Sep 2020

0 votes

It doesn't seem like you want to locate peaks (which you could do using the islocalmax function) but you want to remove a trend. If that's the case see the detrend function.

1 Comment

Steven Lord
Steven Lord on 10 Sep 2020
Edited: Walter Roberson on 12 Sep 2020
Since this sounds like a homework assignment, please show us the code you've written to try to solve the problem and ask a specific question about where you're having difficulty and we may be able to provide some guidance.
If you aren't sure where to start because you're not familiar with how to write MATLAB code, I suggest you start with the MATLAB Onramp tutorial ( https://www.mathworks.com/support/learn-with-matlab-tutorials.html ) to quickly learn the essentials of MATLAB.
If you aren't sure where to start because you're not familiar with the mathematics you'll need to solve the problem, I recommend asking your professor and/or teaching assistant for help.

Sign in to comment.

Products

Asked:

on 10 Sep 2020

Edited:

on 12 Sep 2020

Community Treasure Hunt

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

Start Hunting!