Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

New to MATLAB?

Write .wav file , from buffer ?

Asked by I Made

I Made (view profile)

on 15 Mar 2013

How to convert back after using buffer function on a signal, e.g i have code


how do i convert back "segment" into "leftchanel" ? then what to do to combine the "leftchanel" and "rightchanel" back and rewrite it back to .wav file again? because :


only above write to wav code i can find, there is no chanel parameter in it? am i supposed to combine "rightchanel" and "leftchanel" into "f" first?


I Made

I Made (view profile)


No products are associated with this question.

1 Answer

Answer by Walter Roberson

Walter Roberson (view profile)

on 15 Mar 2013
Accepted answer
newleftchannel = segment(:);
newrightchannel = .... ??  %a column vector
wavwrite( [newleftchannel, newrightchannel], filename );

1 Comment

I Made

I Made (view profile)

on 16 Mar 2013

I actually figured it out myself a little different using for loop to combine it, but yours work great too. Thanks :D

Walter Roberson

Walter Roberson (view profile)

Contact us