Convert the stereo sound to the mono sound by loading only one channel data into the result vector
143 ビュー (過去 30 日間)
古いコメントを表示
Nathan Jaqua
2019 年 10 月 6 日
コメント済み: Héctor Miguel Ventura Cercado
2020 年 10 月 29 日
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 件のコメント
採用された回答
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Audio and Video Data についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!