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

6 ビュー (過去 30 日間)
Krish Ambre
Krish Ambre 2020 年 9 月 27 日
回答済み: Joel Van Sickel 2020 年 9 月 28 日
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?

回答 (1 件)

Joel Van Sickel
Joel Van Sickel 2020 年 9 月 28 日
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

コミュニティ

カテゴリ

Help Center および File ExchangeSignal Import and Export についてさらに検索

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by