Filter löschen
Filter löschen

Vectors must be the same length with .wav file

1 Ansicht (letzte 30 Tage)
Voltarian
Voltarian am 31 Mär. 2020
Bearbeitet: Voltarian am 1 Apr. 2020

Antworten (1)

MaryD
MaryD am 31 Mär. 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)

Kategorien

Mehr zu Audio I/O and Waveform Generation finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by