0
0
Signal Processingdata~10 mins

Common window functions in Signal Processing - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to create a Hamming window of length 10 using NumPy.

Signal Processing
import numpy as np
window = np.[1](10)
Drag options to blanks, or click blank then click option'
Abartlett
Bblackman
Ckaiser
Dhamming
Attempts:
3 left
💡 Hint
Common Mistakes
Using a different window function like Blackman or Bartlett instead of Hamming.
2fill in blank
medium

Complete the code to generate a Kaiser window with beta parameter 14 and length 15.

Signal Processing
import numpy as np
window = np.[1](15, beta=14)
Drag options to blanks, or click blank then click option'
Akaiser
Bhamming
Cblackman
Dbartlett
Attempts:
3 left
💡 Hint
Common Mistakes
Using a window function that does not accept a beta parameter.
3fill in blank
hard

Fix the error in the code to generate a Blackman window of length 20.

Signal Processing
import numpy as np
window = np.[1](20)
Drag options to blanks, or click blank then click option'
Ablackman
Bblackmann
Cblackman_window
Dblack
Attempts:
3 left
💡 Hint
Common Mistakes
Misspelling the function name or using a non-existent function.
4fill in blank
hard

Fill both blanks to create a Bartlett window of length 12 and normalize it by dividing by its maximum value.

Signal Processing
import numpy as np
window = np.[1](12)
normalized_window = window / window[2]()
Drag options to blanks, or click blank then click option'
Abartlett
Bhamming
Cmax
Dsum
Attempts:
3 left
💡 Hint
Common Mistakes
Using the wrong window function or normalizing by sum instead of max.
5fill in blank
hard

Fill all three blanks to create a Blackman window of length 16, convert it to a list, and print its first element.

Signal Processing
import numpy as np
window = np.[1](16)
window_list = window.[2]()
print(window_list[3])
Drag options to blanks, or click blank then click option'
Ablackman
Btolist
C[0]
Dlist
Attempts:
3 left
💡 Hint
Common Mistakes
Using list(window) instead of window.tolist(), or incorrect indexing syntax.