Answered step by step
Verified Expert Solution
Question
1 Approved Answer
import numpy as np import matplotlib.pyplot as plt Common values for all modulation techniques samp_rate =50#50samples/s baud =1#1symbol/s bitrate =1 # 1bits/s1symbol=1 bit carrefreq =2Hz
import numpy as np import matplotlib.pyplot as plt Common values for all modulation techniques samp_rate =50#50samples/s baud =1#1symbol/s bitrate =1 \# 1bits/s1symbol=1 bit carrefreq =2Hz dfreq =1Hz FSK - Frequency Shift Keying In this digital modulation technique frequency shift marks a bit transition. l.e., fc+f means 0 and fc=f means 0 where fc is the carrier frequency Step 1 - Generate a baseband signal fig = plt.figure (figsize=(8,2)) \#grid = plt.GridSpec(4, 1, wspace=0.4, hspace=0.3) message = 'message' res = ',join(format(ord(i), '08b') for i in message) message_bits = np.array([int(bit) for bit in res]) baseband_data = np.kron(message_bits, np.ones(int(samp_rate / bitrate))) \# 1 bit = sample_rate/bitrate plt.plot(baseband_data) plt.title("Baseband data") plt.grid(True, linestyle='-')
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started