How to create a custom block for calculating RMS of a signal?

6 visualizaciones (últimos 30 días)
Krish Ambre
Krish Ambre el 27 de Sept. de 2020
Respondida: Joel Van Sickel el 28 de Sept. de 2020
I want to create a custom MATLAB function block to replace the Simuink RMS block(for calculating RMS of sin wave). How do I proceed?

Respuestas (1)

Joel Van Sickel
Joel Van Sickel el 28 de Sept. de 2020
Hello Krish,
As to how to specifically implement RMS in MATLAB, that is going to depend on your requirements and why you want to use your own function instead of an existing one. You could research RMS approximations or simplifications (based on assumed constant frequency or other simplifications you can get away with) to implement this.
Regards,
Joel

Comunidades de usuarios

Más respuestas en  Power Electronics Control

Productos


Versión

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by