RMS of sampled signal

3 views (last 30 days)
carlo mars
carlo mars on 25 Jan 2016
Commented: dpb on 19 Jul 2024
I have a signal sampled at 5000 samples per second . and I have 5 second . plz help me to find the RMS value of the ac component of the waveform of this signal

Accepted Answer

Walter Roberson
Walter Roberson on 25 Jan 2016
ac_signal = YourSignal - mean(YourSignal(:));
rms = sqrt( mean(ac_signal.^2) );
  1 Comment
dpb
dpb on 19 Jul 2024
Stumbled on this from suggested links -- beginning with R2012a the Signal Processing TB contains rms which was subsequently moved into MATLAB proper with R2022a.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!