Blackman/Hamming Window

How can I change the amplitude of a hamming/blackman window and on ox axis and have time on ox axis(in seconds)?

6 件のコメント

Mathieu NOE
Mathieu NOE 2021 年 1 月 14 日
hello !
sorry , your question is not clear - windows are defined by their lenght in samples
like hanning(10) is a 10 samples lenght hanning window , whatever the sampling (time interval)
Joanna Mark
Joanna Mark 2021 年 1 月 14 日
I understood. And is there a possibility to set a certain amplitude?(less than 1)
Mathieu NOE
Mathieu NOE 2021 年 1 月 15 日
all windows are normalised so the central value is always 1 (demo for odd number of samples below )
you can always multiply the output of the window function by any factor if you need to , like out = 10*hanning(5)
>> hanning(5)
0.2500
0.7500
1.0000
0.7500
0.2500
>> hamming(5)
0.0800
0.5400
1.0000
0.5400
0.0800
>> blackman(5)
0
0.3400
1.0000
0.3400
0
Joanna Mark
Joanna Mark 2021 年 1 月 15 日
Thank you very much for your help!
Joanna Mark
Joanna Mark 2021 年 1 月 15 日
and one more question: i want to add a line after this window. The code is
R=11;
window=0.4*hamming(R);
X = [11.1,11.4];
Y = [0,0];
total=[window X Y];
But it can't run, because of an error using horzcat
Bjorn Gustavsson
Bjorn Gustavsson 2021 年 1 月 15 日
Whenever you get errors like that always start investigating the cause by checking the sizes of your arrays. Here that would be done most easily with whos:
whos window X Y
That way you can check that you're concatenating arrays of matching sizes.

サインインしてコメントする。

回答 (0 件)

カテゴリ

質問済み:

2021 年 1 月 14 日

コメント済み:

2021 年 1 月 15 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by