Looks like a homework? You know we cannot give you the completed m-code. Just a few hints.
Try first to read wav file. Use wavread('filename') in Matlab. You can browse for a file with uigetfile function.
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.