Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

First question please aching/ECE5870/NotesFall17/HW1.pdf MergeF W HTTP/2 - Wikip

ID: 2248452 • Letter: F

Question

First question please aching/ECE5870/NotesFall17/HW1.pdf MergeF W HTTP/2 - Wikipedia Student Center Food Saber El Rebai - Sidi10617 18701 No electronic submissions. Modeling of signal deterioration due to broadening of light pulses. I. (1 point) Generate a random N = 64-bit long sequence of binary bits (0s and 1s). There are 10'9 such sequences-choose your own, don't take it from a stranger. Print the sequence you use in further simulations. 2" (2 points) Set bit duration to T = 0.1ns. Set a dense time grid with a step dt = T/ 1024, extended from t 0 to t NT. Place a Gaussian pulse G (t) = expl-(t/t)21 in the middle of each bit with value 1. wings of the Gaussian pulse shape may extend in timescale over several neighboring Add all the pulses in the sequence to generate the signal P(t) in RZ format (Return t Consider three cases and (c) significantly broadened pulses with = T from 0 to NT). Use the same sequence from item 1 for analysis of all three cases of t width

Explanation / Answer

1.

>> N = round(rand(1,64)); %Generate a 64 bit random sequence between 0 and 1

>> display(N)

rand(1,64) will generate a 64 bit random sequence whose values will be between 0 and 1 and then you can use round function to round the random values to the nearest integer. Just try and see

This was my output

Columns 1 through 26:

0 1 0 0 1 0 1 1 1 0 1 0 0 0 0 1 0 0 1 0 1 1 1 0 0 0

Columns 27 through 52:

1 1 1 0 1 0 1 1 1 0 0 0 1 0 1 1 1 1 0 0 1 0 0 1 0 0

Columns 53 through 64:

1 1 0 1 0 0 0 1 1 1 0 0