handling audio files
1 次查看(过去 30 天)
显示 更早的评论
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?
0 个评论
采纳的回答
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
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File 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!