DSPRelated.com
Forums

MATLAB Window-Applying Multiple Windows to one Signal

Started by odemzkolo February 28, 2009
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 1sec 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
Yes it is possible to split the signal into multiple windows and then
perform the same operation on each window separately..
One way to do is define a variable, say Window number N...And then use a for
loop with N starting from 1 and going to as many windows as you need.
And within the for loop, select the part of the 1 second window as a
function of the window variable N on which you want to do the operation....

I hope this helps..

Regards,

Syed Ahmar Shah

On Sat, Feb 28, 2009 at 7:37 PM, odemzkolo 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 1sec 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
>
>
>
Hey thank you very much Syed! I greatly appreciate your help! It got it to
work!

On Sat, Feb 28, 2009 at 5:29 PM, Syed Ahmar Shah wrote:

> Yes it is possible to split the signal into multiple windows and then
> perform the same operation on each window separately..
> One way to do is define a variable, say Window number N...And then use a
> for loop with N starting from 1 and going to as many windows as you need.
> And within the for loop, select the part of the 1 second window as a
> function of the window variable N on which you want to do the operation....
>
> I hope this helps..
>
> Regards,
>
> Syed Ahmar Shah
> On Sat, Feb 28, 2009 at 7:37 PM, odemzkolo 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 1sec 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
>>
>>
>>
--

Onyekachi "Kachi" Odoemene
BS Biomedical Engineering, Expected 2009
School of Engineering and Applied Science
The George Washington University

With reason, "do what you have to do so that you can do what you want to do"