Risposta accettata

Geoff
Geoff il 17 Apr 2012

1 voto

I gave an answer today that required an RMS calculation.
You can make a throw-away function for RMS:
RMS = @(x) sqrt(mean(x.^2));
And then to answer your question:
signal = signal / RMS(signal);

1 Commento

dpb
dpb il 19 Lug 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.

Accedi per commentare.

Più risposte (0)

Richiesto:

il 17 Apr 2012

Commentato:

dpb
il 19 Lug 2024

Community Treasure Hunt

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

Start Hunting!

Translated by