split an audio file
Mostrar comentarios más antiguos
Hi everyone, i need your help. I'm a newbie in using matlab, so could you help me code this exercise : " Using reshape to split a file wav into some small files."
Thank you very much if you help me .
2 comentarios
Image Analyst
el 20 de Oct. de 2021
Is it monaural or stereo?
Thanh Vu Phuong
el 21 de Oct. de 2021
Respuestas (1)
Star Strider
el 20 de Oct. de 2021
1 voto
It only operates on one vector at a time, and returns a matrix of column vectors (regardless of the original vector orientation), so for a stereo signal, it will be necessary to do this for each column (channel) separately.
.
4 comentarios
Thanh Vu Phuong
el 21 de Oct. de 2021
The ‘some small files’ requirement is a bit ambiguous.
Choose an integral divisor of the number of rows in the file, then choose that number to be the second argument to reshape (the first is the matrix itself), then go for it!
wavmatrix = [1:20; 21:40]';
newmatrix = reshape(wavmatrix, 10, [])
The first and second columns are the left channel, and the third and fourth columns are the right channel.
I leave the rest to you!
.
Thanh Vu Phuong
el 21 de Oct. de 2021
Star Strider
el 21 de Oct. de 2021
My pleasure!
.
Categorías
Más información sobre Image Arithmetic en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!