I have a question about windowing in MATLAB. So I have a 1 second signal, y1 to which I would like to apply a 24ms hamming window. Within the windowed signal, I want to perform a series of calculations . From what I understand about windows you can simply multiply y1 and the window function to get the windowed signal. I'm curious though is it possible to split that 1 sec signal into many (approx 42) windows and perform the computation within those windows? if so how do I do it in matlab? Basically I want to have the window move from a 24ms segment to another 24ms segment for the entire signal duration. Kachi
MATLAB Hamming Window-Applying Multiple Windows to one Signal
Started by ●February 28, 2009
Reply by ●February 28, 20092009-02-28
On Feb 28, 2:30 pm, "kachi" <ode...@gwmail.gwu.edu> wrote:> I have a question about windowing in MATLAB. So I have a 1 second signal, > y1 to which I would like to apply a 24ms hamming window. Within the > windowed signal, I want to perform a series of calculations . From what I > understand about windows you can simply multiply y1 and the window function > to get the windowed signal. > I'm curious though is it possible to split that 1 sec signal into many > (approx 42) windows and perform the computation within those windows? if so > how do I do it in matlab? Basically I want to have the window move from a > 24ms segment to another 24ms segment for the entire signal duration. > > KachiActually, your question seems to be about applying one window to multiple data (sub)segments. Take a look at spectrogram.m to see if it is an example of what you are suggesting. Dale B. Dalrymple http://dbdimages.com
Reply by ●February 28, 20092009-02-28
kachi <odemzk@gwmail.gwu.edu> wrote:> I'm curious though is it possible to split that 1 sec signal > into many (approx 42) windows and perform the computation > within those windows? if so how do I do it in matlab? Basically > I want to have the window move from a 24ms segment to another > 24ms segment for the entire signal duration.Study the Matlab documentation for the functions repmat() and reshape() and you will be able to solve this and many other problems. Steve