Clock signal block simulation is different from practical analysis

조회 수: 1 (최근 30일)
Mohd. Irfan
Mohd. Irfan 2022년 8월 3일
답변: Shantanu Dixit 2024년 9월 6일
was learning use of clock signal as can be seen from image by taking out the reminder of clock signal and constant.
In actual practise there should be sudden drop to zero at number 2 as remainder is zero during that scenario but, it started dropping before 2 (i.e.) at 1.8 that, too steeply not sudden.
Kindly give clarification regarding this
Data info:
Stop time :10
Decimation:10
Thank you

답변 (1개)

Shantanu Dixit
Shantanu Dixit 2024년 9월 6일
Hello Irfan,
The behaviour you're observing is expected due to the nature of numerical simulations in Simulink. The solver updates the simulation state based on the 'step size', which dictates how frequently the simulation state is computed which can affect the precision of events
In your case, the drop occurs before the expected point (at 1.8 instead of 2) because of the 'step size'. To address this, you can try reducing the step size of the solver. By doing so, the frequency of state updates is increased, allowing for a more precise capture of transitions. This should help in making the drop occur closer to the expected point.

카테고리

Help CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by