How to remove a signal from a timeseries (the signal is known and the same length as timeseries)

3 views (last 30 days)
I have a timeseries of length 35. I want to remove a signal from this timeseries. The signal I want to remove is another timeseries also of length 35.
The image link:
shows the two timeseries plotted as a plotyy(). How would I go about removing the signal of 'timeseries B' from 'timeseries A'. I am implying that 'timeseries B' makes up part of 'timeseries A' as noise.
Thanks

Answers (2)

Azzi Abdelmalek
Azzi Abdelmalek on 16 Jul 2015
Edited: Azzi Abdelmalek on 16 Jul 2015
Look at this example
t=0:0.1:10
y1=sin(t)
y2=t.^2
plotyy(t,y1,t,y2)
h=findobj(gcf,'type','axes')
delete(h(1))
  2 Comments
Oliver
Oliver on 16 Jul 2015
Edited: Oliver on 16 Jul 2015
Hi there, thanks. I dont just want to remove the signal from a plotyy() plot. How would I remove the signal if simply the timeseries A was shown. I am implying that timerseries B makes up (as noise) part of timeseries A
Azzi Abdelmalek
Azzi Abdelmalek on 16 Jul 2015
Edited: Azzi Abdelmalek on 16 Jul 2015
Please, make your question clear. have you one signal or two? The plot shows two signals, maybe you should show us another plot, to better illustrate what you want.

Sign in to comment.


Peter Perkins
Peter Perkins on 16 Jul 2015
Oliver, how are your data stored? If B is a noise component of A that you want to remove, can you not just compute C = A - B? You can do this if A and B are double vectors; you can also do it if they are timeseries objects.

Categories

Find more on Time Series 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!