handling audio files

I'm working with audio files for noise reduction. I have my audio file and reference signal of different lengths. How to make the input and desired vectors of same length in matlab?

 採用された回答

Vieniava
Vieniava 2011 年 2 月 14 日

0 投票

Check this out:
% v1, v2 - two vectors are given
len1=length(v1);
len2=length(v2);
%
LEN=min(len1, len2);
V1=v1(1:LEN);
V2=v2(1:LEN);
% V1, V2 are vectors with same length

1 件のコメント

Deepa
Deepa 2011 年 2 月 16 日
thank u......it worked well

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeAudio I/O and Waveform Generation についてさらに検索

タグ

質問済み:

2011 年 2 月 14 日

Community Treasure Hunt

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

Start Hunting!

Translated by