Vectors must be the same length with .wav file

조회 수: 1 (최근 30일)
Voltarian
Voltarian 2020년 3월 31일
편집: Voltarian 2020년 4월 1일

답변 (1개)

MaryD
MaryD 2020년 3월 31일
t = linspace(0, length(y)/fs,length(y));
I think you use linspace in wrong way. "y = linspace(x1,x2,n) generates n points. The spacing between the points is (x2-x1)/(n-1)."
try
t=0:length(y)/fs:length(y)

카테고리

Help CenterFile Exchange에서 Audio and Video Data에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by