I'm having an assignment of computing narrowband spectrograms using MATLAB. And I totally have no idea about the code. Can someone help me writing the code and explaining what's going on to me. Lots of thanks!!
Followings are the requirement:
B.1. Load the recorded .wav file using the function “wavread”. Let y be the variable storing the signal;
B.2. Perform short-time Fourier transform on y as follows: (i) Divide the signal into many short-time frames. Each frame is 50 msec long. Frame shift is 1 msec;
(ii) Apply 1024-point FFT on each frame;
(iii) Store the power spectrum of each frame in a column vector (note that only the first 512 FFT coefficients are needed).
(iv) Append the power spectrum vectors of all frames to form super matrix S. The size of the matrix will be 512 × no. of frames; (v) Plot the spectrogram using the following MATLAB commands