Generate the following signals in Simulink

조회 수: 8 (최근 30일)
Aaron Connell
Aaron Connell 2017년 1월 31일
댓글: Aaron Connell 2017년 1월 31일
Good evening Matlab community. I am a bit new to simulink. I would like to know how to plot the function x(t)= 5*cos(30*pi*t+0.25*pi) using blocks. My attempt is below: but the output is all wrong. How do I plot this function? Am I supposed to use a constant source? the contents of my function block is in the other pic. I want a clear xy plot in the scope. Or do I use the xy plot block? I would appreciate any guidance thank you!
  댓글 수: 19
Purushottama Rao
Purushottama Rao 2017년 1월 31일
편집: Purushottama Rao 2017년 1월 31일
You can also use a zero order hold block in the same way. Dont forget to change the sampling time.
Aaron Connell
Aaron Connell 2017년 1월 31일
That did it! Thank you!!!!!

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

채택된 답변

Purushottama Rao
Purushottama Rao 2017년 1월 31일
Use a clock as an input in place of sine wave. To reduce the number of cycles you need to modify the function y. If you are looking for 1 cycle/second then use a function similar to y= 5*cos(2*pi*u+0.25*pi)

추가 답변 (0개)

카테고리

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

제품

Community Treasure Hunt

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

Start Hunting!

Translated by