フィルターのクリア

how to downsample a audio having sampling rate 44100 Hz to 2000Hz in matlab? This is the program i used but it showing error. how to rectify it?

6 ビュー (過去 30 日間)
[x, fs1] = audioread('audio8.wav');
ts1=1/fs1;
N1=length(x);
Tmax1=(N1-1)*ts1;
t1=(0:ts1:Tmax1);
figure;
plot(t1,x),xlabel('Time'),title('Original audio');
[y,fs2]=downsqample(x,20,441);
ts2=1/fs2;
N2=length(y);
Tmax2=(N2-1)*ts2;
t2=(0:ts2:Tmax2);
figure;
plot(t2,y),xlabel('Time'),title('downsampled audio');
  2 件のコメント
madhan ravi
madhan ravi 2018 年 10 月 23 日
What’s the error message paste everything in red here
SUCHITHRA K S
SUCHITHRA K S 2018 年 10 月 23 日
Error using downsample Too many output arguments.
Error in project (line 8) [y,fs2]=downsample(x,20,441);

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

回答 (1 件)

madhan ravi
madhan ravi 2018 年 10 月 23 日
編集済み: madhan ravi 2018 年 10 月 23 日
Should be downsample but you wrote it as downsqample
  17 件のコメント
madhan ravi
madhan ravi 2018 年 10 月 27 日
編集済み: madhan ravi 2018 年 10 月 27 日
Thank you sir Walter . @Suchithra you can appreciate the persons time by accepting the answer and also it indicates the question is solved
atek
atek 2021 年 1 月 27 日
Sir Walter indeed, as usual. @SUCHITHRA K S, I strongly 2nd @madhan ravi's comment

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

カテゴリ

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