School report notebook kit (cover, binder spine

NET 222: Communications
And Networks
Fundamentals
Name:
Homework
2- MATLAB
ID:
Section:
Networks and communications
Department
Spring 2014
Question 1:
NOTE!!: You should print-screen for your code and figure… submit the Homework hard copy
only.
Write the MATLAB statements for the following requirements:
1- Declare and add the following matrices:

2- Find the complement of B.
3- Define a vector of angels that start from 0 until 1 with a step of 0.3 between each two
angels. Then get the COSINE for these angels.
Question 2:
1- Plot the function e-x/3sin(x) between 0≤x≤4π .use 100 samples.
2- Create the following graph light intensity plot :
a) Creating vector x,y for plotting the theoretical curve.
x=[10:0.1:22];y=95000./x.^2;
b) Creating a vector with light intensity from data. xd=[10:2:22];yd=[950 640 460
340 250 180 140];
Note: use
format as
shown in
the figure
Question 3:
1. Sample the sinusoid x = sin(2 pi f t), where f = 2 kHz. And t=0:5T

Let x1 be the signal sampled at 10 kHz.

Let x2 be the signal sampled at 3 kHz
Note: sublpot to divide the figure so we can plot as many plot as we need
Question 4:
1. Plot each function showing below on x=[0,7 pi] incremented by 0.1. Produce three plot
on the same figure and different colors:

3 * sin(x)

0.75 * cos (x)

x+sin(3pi/4 *x)
Note: Bonus one mark for those who will solve the homework correctly