Simulink wavegenartor gives not smoth sine wave

조회 수: 67 (최근 30일)
tomer polsky
tomer polsky 2021년 5월 7일
댓글: zaid 2023년 4월 29일
I want to seee a sine wave on the scope of the simulink but it does not work ,meaning the wave is not smooth . how to fix it ?

채택된 답변

Sriram Tadavarty
Sriram Tadavarty 2021년 5월 7일
Hi Tomer,
To get a smooth waveform, try to have more samples within the one cycle of sine waveform. Changing the number of samples within a cycle implies changing the sample time.
You can try changing the Sample time value in the Signal Attributes tab of Waveform Generator block, to have a smooth waveform. The Signal Attributes tab lies side to the Main tab of Waveform Generator mask.
You can set the Sample time to 1/5000 and observe the smooth waveform for the sin(2,1000,0).
Hope this helps,
Sriram
  댓글 수: 2
tomer polsky
tomer polsky 2021년 5월 7일
ye it did the trick . thank you very much !!!
zaid
zaid 2023년 4월 29일
thaaaaaaanks you saved me

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

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by