Sound files with 4 channels in MATLAB

3 visualizaciones (últimos 30 días)
high speed
high speed el 31 de En. de 2023
Respondida: Rik el 31 de En. de 2023
Dear,
When I try to read the handel.wav audio in MATLAB, I found that it is a mono (1 channel) sound (p=1).
Can you suggest please an audio with 4 channels. It means Its not mono or stereo. I have to fing p=4
  3 comentarios
high speed
high speed el 31 de En. de 2023
@Rik How can I replicate it in MATLAB please
Star Strider
Star Strider el 31 de En. de 2023
Perhaps this —
v1 = rand(5,1)
v1 = 5×1
0.0323 0.5666 0.5766 0.9202 0.0240
v4 = v1 * ones(1,4)
v4 = 5×4
0.0323 0.0323 0.0323 0.0323 0.5666 0.5666 0.5666 0.5666 0.5766 0.5766 0.5766 0.5766 0.9202 0.9202 0.9202 0.9202 0.0240 0.0240 0.0240 0.0240
.

Iniciar sesión para comentar.

Respuesta aceptada

Rik
Rik el 31 de En. de 2023
S = load('handel');
new_y = repmat(S.y,1,4);
size(new_y)
ans = 1×2
73113 4
Now you can no longer use the sound function, as that only supports mono and stereo.

Más respuestas (0)

Categorías

Más información sobre Audio I/O and Waveform Generation en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by