Vectors must be the same length with .wav file

1 visualización (últimos 30 días)
Voltarian
Voltarian el 31 de Mzo. de 2020
Editada: Voltarian el 1 de Abr. de 2020

Respuestas (1)

MaryD
MaryD el 31 de Mzo. de 2020
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)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by