Switching the output between signals

조회 수: 1 (최근 30일)
Pat
Pat 2012년 12월 4일
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
TAB
TAB 2012년 12월 4일
What is sample time of your model ?
Pat
Pat 2012년 12월 5일
Sampletime is 0

댓글을 달려면 로그인하십시오.

답변 (1개)

Jonathan Epperl
Jonathan Epperl 2012년 12월 4일
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
Jonathan Epperl
Jonathan Epperl 2012년 12월 4일
편집: Jonathan Epperl 2012년 12월 4일
Sorry, I misspoke, what I meant was a pulse train.
This here is a pulse
__
__| |______
This is a pulse train:
__ __ __
__| |__| |__| |__
Pat
Pat 2012년 12월 4일
I tried but it doesnot switch signals,fore ex my signals must switch after each 0.02s

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Sources에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by