Professional Documents
Culture Documents
Midterm Exam-2
Take Home Exam
@ 1:00 PM
Marks
Q1
20
Q2
20
Q3
15
Q4
15
Q5
15
Q6
15
Total
100
Q1. Consider a linear system which has the following simultaneous equations:
(a)
(b)
(c)
(d)
(e)
12 3 5 a1 1
1 5 3 a 28
2
3 7 13 a3 76
(a) Explain the meaning of iterative method?
(b) Solve the system using Gauss-Seidel Iterative Method.
(d) Using MATLAB, solve the system using Gauss-Seidel Iterative Method.
Q3.
f(x)=4x3-6x1+7x-2.3
Do the following:
(a) Using MATLAB, Plot the function for interval [x=0:0.1:10];
(b) Find the root of the system using:
1- Secant Method
2- Bisection Method
3- Newtons Method
Note: Show your final results and put them in a table for 5 iterations.
(c) Write a MATLAB code to perform only one method of your choice and show your
results.
1.
2.
3.
4.
Voltage (v)
Current (mA)
0
3
5
8
10
11
12
14
16
0
23
50
70
75
83
90
95
96
(c) From the data in last table, interpolate the data at V=7 using the three polynomial
methods: (Direct, Lagrange, and Newton Divided Method).
(d) Use MATLAB to Interpolate v(t) for points i=0:1:96. Plot the interpolated and original data in
one graph.
f(x)
f(x)
0.0
0.2
0.44
2.842
0.12
1.309
0.54
3.507
0.22
1.305
0.64
3.181
0.32
1.743
0.70
2.363
0.36
2.074
0.80
0.232
0.40
2.456
f1 (t ) cos(2 5t )
f 2 (t ) cos(2 25t )
f 3 (t ) cos(2 50t )
t=0,1,2,,64
Each with different frequency. These functions are added together to get anew function;
f (t ) f1 f 2 f 3
a) Plot using MATLAB the functions, f1(t),f2(t), f3(t) and f(t).
b) Compute numerically the Fourier transform of f(t) sing the definition of DFT (matrix and
vectors operations).
c) Using fft in MATLAB to compute the Fast Fourier Transform FFT to get F(w). Plot its
magnitude value.