Measuring intensity of sound

3 ビュー (過去 30 日間)
Odrisso
Odrisso 2014 年 10 月 30 日
コメント済み: Image Analyst 2014 年 10 月 31 日
Hi All,
I have a wav file 100 seconds and I have another excel file where I marked some area of that wav file like 6 to 10, 15 to 18 seconds and so on. Now, I want to calculate the intensity parameters (like maximum , minimum, mean)of the marked area. Please give me a matlab code of how to do it.
Thanks

回答 (2 件)

Harry
Harry 2014 年 10 月 30 日
Here is the code you need:
max_val = max(x);
min_val = min(x);
mean_val = mean(x);
  2 件のコメント
Odrisso
Odrisso 2014 年 10 月 30 日
Well, this is not the answer of my question. I know how to wavread. I need the procedure to learn how to measure intensity from that.
Harry
Harry 2014 年 10 月 31 日
Yes, sorry, please see Image Analyst's answer for the line I missed. In other words, x is my extracted signal:
x = fullSignal(index1:index2);
Please accept Image Analyst's answer, as he responded first.

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


Image Analyst
Image Analyst 2014 年 10 月 31 日
extractedSignal = fullSignal(index1:index2);
theMin = min(extractedSignal);
theMax = max(extractedSignal);
theMean = mean(extractedSignal);
  2 件のコメント
Odrisso
Odrisso 2014 年 10 月 31 日
Thanks.
Well, I have an excel file of start and stop times. Now, how can I extract the sounds from the total signal by using the excel file?
Image Analyst
Image Analyst 2014 年 10 月 31 日
You forgot to attach them so I can't do anything. Or I could spend my time to create something myself but I don't want to spend the time to do that when you could just attach yours in a few seconds of your time.

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

カテゴリ

Help Center および File ExchangeAudio and Video Data についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by