Simulink Repeating Sequence giving unexpected Results

I have the following simulink model:
Where T = 1e-3
But the output of the sequence is not what i was expecting. I thought this would give me a triangle wave, amplitude = 10, 1ms period, 0 offset. but instead i get this:
Im not understanding where these intermadiate values are coming from. The first cycle seems to be correct but all other cycles are incorrect

 채택된 답변

Mathieu NOE
Mathieu NOE 2025년 4월 23일

0 개 추천

hello
this is probably due to your choice of solver - what are your options ?
I opted for a fixed (discrete) sampling with sampling interval = T/100 to get enough samples per period (otherwise you may end up with strange distorted signal)

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Simulink에 대해 자세히 알아보기

제품

릴리스

R2021b

질문:

2025년 4월 22일

댓글:

2025년 7월 4일

Community Treasure Hunt

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

Start Hunting!

Translated by