Filter löschen
Filter löschen

Trim signal on x-axis

1 Ansicht (letzte 30 Tage)
Lelo
Lelo am 15 Jul. 2022
Beantwortet: Pratheek am 15 Sep. 2023
Is there any possible way to trim a signal on its x-axis in Simulink?
I created a sine wave with a phaseshift in my model. Along with other calculations, I need to calculate the RMS of my signal. I found the RMS-block in simulink, which should do exactly what I want. But as my sine is phase-shifted, it continues to calculate a wrong RMS.
How can i cut-off the phase shift? It is not possible to just create a sine without a phase shift, because my Simulink model has to work also with other signals which are quite noisy.
  1 Kommentar
Mathieu NOE
Mathieu NOE am 25 Jan. 2023
hi
I am surprised you can't do the RMS because of a phase shift ??
can you create a simplified model and share it ?

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Pratheek
Pratheek am 15 Sep. 2023
Hi Lelo,
I understand that you are not getting the correct RMS value, but RMS value doesn't vary with change in phase shift.
For your other question to cutoff the phaseshift you can leverage the help of Variable Time delay block in simulink.
Please go through the following link for more information: https://www.mathworks.com/help/simulink/slref/variabletimedelay.html
Hope this helps you!

Kategorien

Mehr zu Modeling finden Sie in Help Center und File Exchange

Produkte


Version

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by