Switching the output between signals
Show older comments
I have tw sine waves with different amplitude and stop time is 0.08,i used 2 sine wave blocks a switch with threshold of 0.04,and a clock..
Now i get output with half each waves,now i want to switch signals after each 0.02s
please assist
Answers (1)
Jonathan Epperl
on 4 Dec 2012
0 votes
Multiply your sine waves with a pulse, which is 1 when the multiplied sine wave is supposed to be active, 0 otherwise. I think the pulse generator or repeating sequence blocks will be adequate.
Now add those two signals (the sine wave times pulse) using a SUM block. Voila.
3 Comments
Pat
on 4 Dec 2012
Jonathan Epperl
on 4 Dec 2012
Edited: Jonathan Epperl
on 4 Dec 2012
Sorry, I misspoke, what I meant was a pulse train.
This here is a pulse
__
__| |______
This is a pulse train:
__ __ __
__| |__| |__| |__
Pat
on 4 Dec 2012
Categories
Find more on MATLAB in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!