Switching the output between signals

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

2 Kommentare

TAB
TAB am 4 Dez. 2012
What is sample time of your model ?
Pat
Pat am 5 Dez. 2012
Sampletime is 0

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Jonathan Epperl
Jonathan Epperl am 4 Dez. 2012

0 Stimmen

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 Kommentare

Pat
Pat am 4 Dez. 2012
Jonathan i dont know what uyou means by Multiply your sine waves with a pulse,
what does pulse indicate
Jonathan Epperl
Jonathan Epperl am 4 Dez. 2012
Bearbeitet: Jonathan Epperl am 4 Dez. 2012
Sorry, I misspoke, what I meant was a pulse train.
This here is a pulse
__
__| |______
This is a pulse train:
__ __ __
__| |__| |__| |__
Pat
Pat am 4 Dez. 2012
I tried but it doesnot switch signals,fore ex my signals must switch after each 0.02s

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu MATLAB finden Sie in Hilfe-Center und File Exchange

Produkte

Tags

Gefragt:

Pat
am 4 Dez. 2012

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by