Filter löschen
Filter löschen

handling audio files

1 Ansicht (letzte 30 Tage)
Deepa
Deepa am 14 Feb. 2011
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?

Akzeptierte Antwort

Vieniava
Vieniava am 14 Feb. 2011
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 Kommentar
Deepa
Deepa am 16 Feb. 2011
thank u......it worked well

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Audio I/O and Waveform Generation finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by