How to plot number of frames of acoustic signal data vs RMS?

3 ビュー (過去 30 日間)
Kwaku Owusu
Kwaku Owusu 2020 年 12 月 1 日
コメント済み: KSSV 2020 年 12 月 1 日
Hello, I have 5 minutes recorded acoustic signal with 13,230,000 data points. I would like to divide the signal data into of 30 frames, each consisting of 441,000 data points (equivalent to 10 sec) and determine the root mean square (RMS) of each frame using MATLAB. Please, do I need a loop for this? Or is there some easier way to solve this?
Thanks in advance!
Kwaku.

回答 (1 件)

KSSV
KSSV 2020 年 12 月 1 日
編集済み: KSSV 2020 年 12 月 1 日
s = rand(1,13230000) ;
x = reshape(s,30,[]) ;
N = size(x,2) ;
x_rms= sqrt(mean(x.^2,2)) ;;
  2 件のコメント
Kwaku Owusu
Kwaku Owusu 2020 年 12 月 1 日
Thank you very much. The code is really helpful.
KSSV
KSSV 2020 年 12 月 1 日
Thanks is accepting/ voting the answer. :)

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeMultirate Signal Processing についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by