Adding two time domain vectors
Show older comments
So I have two vectors, say A and B. They are generated by taking beats and rate as an input. This is an ECG problem. The vectors are in the form [x t], where x is magnitude and t is the time domain. If I generate 2 different frequency signals and want to add them how should I do that?
Answers (1)
Wayne King
on 11 May 2012
You just add the two vectors if they are the same length.
x = randn(200,1);
y = randn(200,1);
z = x+y;
The Fourier transform is a linear operator so the Fourier transform of x+y is just the Fourier transform of x + Fourier transform of y
1 Comment
Alec Climer
on 11 May 2012
Categories
Find more on Get Started with DSP System Toolbox 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!