How to create a custom block for calculating RMS of a signal?
6 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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?
0 commentaires
Réponses (1)
Joel Van Sickel
le 28 Sep 2020
Hello Krish,
here is information on using matlab functions to work in Simulink. https://www.mathworks.com/help/simulink/ug/creating-an-example-model-that-uses-a-matlab-function-block.html
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
0 commentaires
Communautés
Plus de réponses dans Power Electronics Control
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!