MATLAB: How to combine to arrays to play at the same time combining two arrays So I have two arrays. One is melody made through MATLAB, the other one is recorded techno music and converted into array. Now my question is how to combine them to play at the same time, if someone can help ? Best Best Answer If they are the same length and have the same sampling frequency ‘Fs’, you can concatenate them, then play them:song = [MATLAB_Melody(:) Techo(:)];slund(song, Fs)The first vector, that I named ‘MATLAB_Melody’ here, will play out of the left speaker, and ‘Techno’ will play out of the right speaker. Related SolutionsMATLAB: Sampling Audio at 11025 sample/sec in MATLAB See: Record and Play Audio for a full description of the process. Note that SampleRate defines the sampling frequency. MATLAB: How to decrease sample frequency Use the Signal Processing Toolbox resample function. Related QuestionIssue with running several sound statements…only last statement will play soundHow to block push button after pressedHow to calculate the time duration of a .wav format voice signal?How to resample 50Hz signal to 30HzA strange problem about audio play using MATLAB (Maybe a bug in MATLAB!)
Best Answer