Integration on a circular set in simulink
Mostrar comentarios más antiguos
Hello, I would like to know if this is possible to obtain the same output as in the image below without having a diverging signal.
For instance, given a frequency of rotation (in rad/s), how to obtain the angle (in rad) in [-pi; pi[ without having a diverging signal?

Regards,
Pascal COMBES
Respuesta aceptada
Más respuestas (1)
Drew Davis
el 8 de Jun. de 2015
0 votos
If you have a signal that is > 0 for all time entering in the inport of the model, as time approaches infinity the signal downstream of the integrator will approach infinity. The way to work around this for oscillatory signals is to create a sort of "wrap from -pi to pi" set of blocks or subsystem that performs this function as you have in your example.
You can add a saturation to the output signal of the integrator but it does not sound like that is what you are trying to do.
1 comentario
Pascal
el 9 de Jun. de 2015
Categorías
Más información sobre Audio Processing Algorithm Design en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!