How to get a damped sine wave with phase delay in Simulink?

조회 수: 2 (최근 30일)
Avinash Prakash
Avinash Prakash 2016년 6월 1일
편집: Avinash Prakash 2016년 6월 6일
As seen in the above image, I would like to get a sine wave in Simulink. The parts labelled "A" and "C" are equal to 0 and the length should be given as user input. The section labelled "B" is a damped sine wave with fixed frequency of 4 Hz.
Thanks in advance!

답변 (1개)

Pavel Dey
Pavel Dey 2016년 6월 6일
You may use element-wise product to get an exponential sine wave. For conditions on beginning and ending of the signal, you may use a counter and a conditional switch. Refer to the attached demo model.
  댓글 수: 1
Avinash Prakash
Avinash Prakash 2016년 6월 6일
편집: Avinash Prakash 2016년 6월 6일
Hey Pavel!
Thank you for the answer. I checked your Simulink file and it is approximately what I wanted.
What I wanted is, say for example x ranges from 0 to 10.
y=0 for 0<x<4
y=A*sin(2*pi*f*t) for 4<x<8
y=0 for 8<x<10
The values for the limits that I have given (4,8) should be controllable in the Simulink loop or Matlab script!
I hope you got my point. Please let me know if you have any doubts.
Thank you so much for your time.
Regards,
Avinash

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

카테고리

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