Mat Print Screen
Transcript of Mat Print Screen
-
7/27/2019 Mat Print Screen
1/21
PART B
1. Evaluate the quadratic equation ax2+ bx + c, assuming values forx.
2 Calculate the following quantities (in degrees) sin/6, cos , tan /2and sin2/6+cos
2/6
3. Write a program to plot the curve for a function described by the equation y= x3
+ 2x2-5,wherex
varies from -10 to +10.
4 Write a program to plot the curve for equation y= sinx + cosxasxvaries from 0 to 2 ; make use of
labels alongx &yaxis.
5. Generate two sinusoids and compute their product. Plot them in time and frequency domain (Fourier
spectrum).
6. Compute the Addition, Subtraction, Division and Multiplication of two matrices.
7 Compute the inverse of a matrix.
8. Use matrix method to solve for currents based on KCL in an electrical circuit having minimum of three
loops.
9. Current flowing through the semiconductor diode is given by
id= i0[ exp( qvd/kT)-1 , where k= Boltzmanns constant (1.38 x 10-23
joules/K)
q= 1.6x10-19
coulombs, T= Absolute Temperature
a) Write a program to calculate the current flowing through the diode for all voltages from -0.2v to+0.25 volts in a step of .01v
b) Plot the current as a function of applied voltage.
10. A series resonant circuit driven by a sinusoidal AC voltage source of 230v, 50 Hz. The current through
the resonant circuit is given by i= v/ R+j(XL XC)(Assume R, L C values).
a) Write a program to calculate and plot magnitude of current verses frequency range between 100
kHz to 10MHz
b) The phase angle as a function of frequency for the range of 100 kHz to 10MHz.
c) The magnitude and phase angle of current as a function of frequency on two subplots of single
figure.
11.Create a function handle for a nested function to plot the parabola.
12. Write a program to verify the logic equation F= + + +. Also, generate truth
table for this function.
13. Generate the following signals (assumef)and plot their frequency spectrum using DFT commands.
a) Square function b) Ramp function c) Sine function.
14. Verify Sampling theorem.
15. Find the impulse response of a simple LTI system.
16. For a given binary data, generate NZ and NRZ patterns.
17. Generate a) ASK, b) FSK and c) QPSK waveforms.
18. Perform the following image process tasks
a) Read and write images in JPEG/BMP/TIFF formats
b) Convert RGB to Grey scale image.
c) Display images using appropriate commands
d) Contrast enhancement of gray scale image
e) Histogram of gray scale image
f) Resize a given image
19. For age-height relation of a group of people, compute mean, standard deviation and variance.
20. Plot the frequency response of LPF, HPF, BS and BP filters.
-
7/27/2019 Mat Print Screen
2/21
1
c =
2 3 4
x =
1 2 3
z =
9 18 31
9 18 31
-
7/27/2019 Mat Print Screen
3/21
2
Enter the angle 30
theta =
30
x =
0.0872
y =
0.8660
z =
0.2679
w =
0.0881
-
7/27/2019 Mat Print Screen
4/21
3
x =
Columns 1 through 13
-10 -9 -8 -7 -6 -5 -4 -3 -2 -1 0 1
2
Columns 14 through 21
3 4 5 6 7 8 9 10
y =
Columns 1 through 6
-800 -567 -384 -245 -144 -75
Columns 7 through 12
-32 -9 0 1 0 3
Columns 13 through 18
16 45 96 175 288 441
Columns 19 through 21
640 891 1200
-
7/27/2019 Mat Print Screen
5/21
4
pi = 3.1420
x = 0 1 2 3 4 5 6
y = 1.0000 1.3818 0.4932 -0.8489 -1.4104 -0.6753 0.6808
-
7/27/2019 Mat Print Screen
6/21
5
-
7/27/2019 Mat Print Screen
7/21
6
a = 1 2 3 4 5 6
b = 1 2 3 1 2 3
c = 2 4 6 5 7 9
-
7/27/2019 Mat Print Screen
8/21
7
a =
1 2 3
4 4 5
1 2 5
b =
1 5 2
6 2 7
4 3 8
(a+b) add =
2 7 5
10 6 12
5 5 13
(a-b) sub =
0 -3 1
-2 2 -2
-3 -1 -3
(a/b) div =
1.0000 0.4000 1.5000
0.6667 2.0000 0.71430.2500 0.6667 0.6250
(a*b) mul =
25 18 40
48 43 7633 24 56
-
7/27/2019 Mat Print Screen
9/21
8
i1=0.3529
i2=0.3681
i3=0.4829
-
7/27/2019 Mat Print Screen
10/21
9
-
7/27/2019 Mat Print Screen
11/21
10
-
7/27/2019 Mat Print Screen
12/21
11
-
7/27/2019 Mat Print Screen
13/21
12
a=1
b=0
b = 0
c=1
f = 1
-
7/27/2019 Mat Print Screen
14/21
13a
-
7/27/2019 Mat Print Screen
15/21
13b
-
7/27/2019 Mat Print Screen
16/21
13c
-
7/27/2019 Mat Print Screen
17/21
14
-
7/27/2019 Mat Print Screen
18/21
18a
Result of image process tasks are given in images folder
a) Read images in JPEG/BMP/TIFF formats
b) Convert RGB to Grey scale image.
c) Display images using appropriate commands
d) Contrast enhancement of gray scale image
e) Histogram of gray scale image
-
7/27/2019 Mat Print Screen
19/21
18b
Result of image process tasks are given in images folder
Resize Image 1
Resize Image 2
-
7/27/2019 Mat Print Screen
20/21
20a. LPF
-
7/27/2019 Mat Print Screen
21/21
20b. HPF