Combining 2 signals into 1
Show older comments
I'm trying to combine these signals but I'm not sure how.
n = [0:1023];
omega = 0.25*pi;
xn = sin(omega*n);
ns = sqrt(0.2)*randn(1,n);
2 Comments
Rick Rosson
on 20 Sep 2014
What specifically do you mean by "combine"?
Dick Rusell
on 20 Sep 2014
Edited: Dick Rusell
on 20 Sep 2014
Accepted Answer
More Answers (1)
Rick Rosson
on 20 Sep 2014
Edited: Rick Rosson
on 20 Sep 2014
Please try:
plot(n,xn,n,ns);
For more info:
>> doc plot
Categories
Find more on Legend 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!