MATLAB Answers

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

1 view (last 30 days)
Krish Ambre
Krish Ambre on 27 Sep 2020
Answered: Joel Van Sickel on 28 Sep 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?


Sign in to comment.

Answers (1)

Joel Van Sickel
Joel Van Sickel on 28 Sep 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.


Sign in to comment.





More Answers in the  Power Electronics Control

Community Treasure Hunt

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

Start Hunting!