필터 지우기
필터 지우기

handling audio files

조회 수: 1 (최근 30일)
Deepa
Deepa 2011년 2월 14일
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일
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개)

카테고리

Help CenterFile Exchange에서 Audio I/O and Waveform Generation에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by