フィルターのクリア

Read the audio file given to you and play it from Matlab. Find the number of samples in the audio file (just the length of the array!) and the sampling rate.

9 ビュー (過去 30 日間)
Read the audio file given to you and play it from Matlab. Find the number of samples in the audio file (just the length of the array!) and the sampling rate.
(a) Downsample the audio by L = 2,5, 10, and play the output from Mat lab.Comment on your observations.
(b) Upsample the audio by M = 2.5, 10. by introducing zero valued samples between each pair of consecutive samples. Play the output and write your observations.
(c) Perform the upsampling by introducing the average of two consecutive samples in between. Do you observe any difference in the output of part (b) and (c)? Note: Write your own functions to perform downsampling and upsampling. Do not use the inbuilt Matlab commands,

回答 (1 件)

Chunru
Chunru 2022 年 8 月 27 日
Read the audio file given to you and play it from Matlab.
doc audioread
Find the number of samples in the audio file (just the length of the array!) and the sampling rate.
doc size
(a) Downsample the audio by L = 2,5, 10, and play the output from Mat lab.Comment on your observations.
doc resample
(b) Upsample the audio by M = 2.5, 10. by introducing zero valued samples between each pair of consecutive samples. Play the output and write your observations.
doc resample
(c) Perform the upsampling by introducing the average of two consecutive samples in between. Do you observe any difference in the output of part (b) and (c)? Note: Write your own functions to perform downsampling and upsampling. Do not use the inbuilt Matlab commands,
Try out yourself first.
  2 件のコメント
maulik bhagat
maulik bhagat 2022 年 8 月 27 日
cant use resample function, have to make custom function
Chunru
Chunru 2022 年 8 月 27 日
% Down sampling without filter
a = randn(1:1000)
b = a(1:5:1000); % downsample by a factor of 5

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

カテゴリ

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

製品


リリース

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by