Convert the stereo sound to the mono sound by loading only one channel data into the result vector
113 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Nathan Jaqua
le 6 Oct 2019
Commenté : Héctor Miguel Ventura Cercado
le 29 Oct 2020
Hi, I am having trouble with this code. I want to do what the title says, but I don't know how to load only a single channel into my vector. Can someone help me, please?
the code:
% clear all the previous contents in workspace.
clc;
clear all;
% Read the audio file
[y, Fs] = audioread(‘Jolly Laugh.wav’ ; % read audio file to array
% Convert the stereo sound to the mono sound by loading only one channel
% data into the result vector
y = y(__________);
% play the audio
sound(y,Fs);
0 commentaires
Réponse acceptée
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Audio and Video Data dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!