Simulink Repeating Sequence giving unexpected Results

14 visualizaciones (últimos 30 días)
Noah Rivas
Noah Rivas el 22 de Abr. de 2025
Comentada: Mathieu NOE el 4 de Jul. de 2025
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

Respuesta aceptada

Mathieu NOE
Mathieu NOE el 23 de Abr. de 2025
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)

Más respuestas (0)

Categorías

Más información sobre General Applications en Help Center y File Exchange.

Productos


Versión

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by