Filter löschen
Filter löschen

Splitting wav file in matlab

1 Ansicht (letzte 30 Tage)
Jack Walker
Jack Walker am 10 Okt. 2016
Beantwortet: KSSV am 10 Okt. 2016
Hello community. I have a mp3 -file converted to a wav-file, which durations last about 10 seconds. I want to split it in 10 parts. Meaning each parts takes 1 seconds. Afterwards, i want to do a fft on every part. The important thing is, how do i split it ?
[y,fs]=wavread('UnchainMyHeart');
t=linspace(0,length(y)/fs,length(y));
plot(t,y)
The code here shows, my wav file in the time domain. Can i continue from here ? Or do i have to start over?

Antworten (1)

KSSV
KSSV am 10 Okt. 2016
k = rand(100,1) ; % random data
k10 = reshape(k,10,[]) ; % split k into 10 parts
doc reshape

Kategorien

Mehr zu Fourier Analysis and Filtering 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