Click here to Skip to main content
15,895,656 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello all
I have two signal first use as noise others use as main signal I am trying add those signals to each other at the end I need a signal that mixed with noise how do I in Matlab?

thanks
Posted
Updated 16-Jan-15 4:25am
v2

1 solution

What's wrong with their sum?

You may also add 'some degree' of the noise to the signal, e.g.

result(t) = main(t) + k * noise(t) 


with 0 < k < 1.
 
Share this answer
 
Comments
Sa.Mo 16-Jan-15 11:28am    
my code is
length=size_signal;

for j=1:length
sn(j)=signal(j)+noise(j);
end
and as your answer why I need degree? please explain more. thanks
CPallini 16-Jan-15 11:35am    
Well you straight add up the two components. If you want to see a 'progressively disturbed' signal you may add the noise using the k proportionality constant (e.g you may put at first k=.1, the k=.2, ...)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900