Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lernen Challenge: Signal Frequency Identification | Signal Processing for Electrical Engineers
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
Python for Electrical Engineers

bookChallenge: Signal Frequency Identification

In your previous studies, you learned how to create signals in Python and analyze their frequency content using the Fast Fourier Transform (FFT). This is a fundamental skill for electrical engineers, as it enables you to identify the frequency components present in real-world signals. When you generate a signal by summing two sine waves of different frequencies, their combined waveform contains both frequency components. By applying the FFT, you can decompose this signal and determine which frequencies are most prominent.

Aufgabe

Swipe to start coding

Implement a Python script that generates a signal composed of two sine waves at 50 Hz and 120 Hz, sampled at 1000 Hz for 1 second. Compute its FFT and identify the two dominant frequencies present in the signal.

  • Find the indices of the two largest values in the magnitudes array.
  • Use these indices to extract the corresponding frequencies from the pos_freqs array.
  • Sort these two frequencies in ascending order.
  • Assign the formatted string to the result variable as shown.
  • The frequencies must be presented with one decimal place.

Lösung

War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 2. Kapitel 3
single

single

Fragen Sie AI

expand

Fragen Sie AI

ChatGPT

Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen

Suggested prompts:

Can you explain how the FFT works in simple terms?

What are some practical applications of using FFT in signal analysis?

Can you show an example of generating and analyzing a signal with two sine waves?

close

bookChallenge: Signal Frequency Identification

Swipe um das Menü anzuzeigen

In your previous studies, you learned how to create signals in Python and analyze their frequency content using the Fast Fourier Transform (FFT). This is a fundamental skill for electrical engineers, as it enables you to identify the frequency components present in real-world signals. When you generate a signal by summing two sine waves of different frequencies, their combined waveform contains both frequency components. By applying the FFT, you can decompose this signal and determine which frequencies are most prominent.

Aufgabe

Swipe to start coding

Implement a Python script that generates a signal composed of two sine waves at 50 Hz and 120 Hz, sampled at 1000 Hz for 1 second. Compute its FFT and identify the two dominant frequencies present in the signal.

  • Find the indices of the two largest values in the magnitudes array.
  • Use these indices to extract the corresponding frequencies from the pos_freqs array.
  • Sort these two frequencies in ascending order.
  • Assign the formatted string to the result variable as shown.
  • The frequencies must be presented with one decimal place.

Lösung

Switch to desktopWechseln Sie zum Desktop, um in der realen Welt zu übenFahren Sie dort fort, wo Sie sind, indem Sie eine der folgenden Optionen verwenden
War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 2. Kapitel 3
single

single

some-alt