Vectors must be the same length with .wav file

5 vues (au cours des 30 derniers jours)
Voltarian
Voltarian le 31 Mar 2020
Modifié(e) : Voltarian le 1 Avr 2020

Réponses (1)

MaryD
MaryD le 31 Mar 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)

Catégories

En savoir plus sur Audio I/O and Waveform Generation dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by