finding peaks in Simulink

1 visualización (últimos 30 días)
satwick guturu
satwick guturu el 27 de Mzo. de 2021
Respondida: Rohit Pappu el 30 de Mzo. de 2021
How can i find peak vaues and their time stamps at which the peaks occur in SIMULINK ?

Respuestas (1)

Rohit Pappu
Rohit Pappu el 30 de Mzo. de 2021
findpeaks accepts only vector data as it's input arguments. A possible workaround would be to use a Buffer block in between Simulink output and MATLAB Function input
Example:
The above example locates the peaks of a discrete sine wave. The Sine Wave block returns a scalar value while findpeaks expects a vector input. To fix this discrepancy, A buffer can be used to convert scalar value to vector values

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by