In communication, why do we modulate signals before transmission?
Think about how radio waves travel and what frequencies are best for long-distance transmission.
Modulation shifts the base signal to a higher frequency, which allows it to travel farther and be transmitted efficiently over the air.
What is the output array when applying amplitude modulation to a base signal?
import numpy as np base_signal = np.array([1, 2, 3, 4, 5]) carrier_freq = 2 carrier = np.cos(2 * np.pi * carrier_freq * np.arange(5) / 5) modulated_signal = base_signal * carrier print(np.round(modulated_signal, 2))
Remember that cosine values oscillate between 1 and -1.
The carrier cosine wave oscillates, so multiplying the base signal by it produces positive and negative values, resulting in amplitude modulation.
Given a baseband signal with frequency 1 Hz modulated by a carrier at 10 Hz, what frequencies appear in the modulated signal's spectrum?
Consider how multiplication in time domain affects frequency components.
Amplitude modulation creates sidebands at carrier frequency plus and minus the baseband frequency, so 9 Hz and 11 Hz appear.
What error will this code produce?
import numpy as np base_signal = np.array([1, 2, 3]) carrier_freq = 5 carrier = np.sin(2 * np.pi * carrier_freq * np.arange(4) / 4) modulated_signal = base_signal * carrier print(modulated_signal)
Check the lengths of arrays being multiplied.
The base_signal has length 3 but carrier has length 4, so element-wise multiplication fails with ValueError.
You must send data over a very noisy channel. Which modulation technique is best to minimize errors?
Think about how noise affects amplitude versus frequency.
FM changes frequency, which is less affected by noise than amplitude, making it better for noisy channels.
