0% found this document useful (0 votes)
57 views1 page

Institute of Technology of Cambodia I3 2013 Exam-Matlab

The document contains instructions for a Matlab exam with 4 parts: 1) Perform matrix operations like addition and multiplication on two matrices A and B, and calculate the determinant of A. 2) Solve symbolic calculus problems like expanding an equation, deriving a function, and integrating another function. 3) Use a For loop to calculate the sum of a series of terms. 4) Make two graphs in the same figure: the first with two functions f and g plotted against t, and the second with g plotted against f. Label and title the graphs.

Uploaded by

Pana Mann
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
57 views1 page

Institute of Technology of Cambodia I3 2013 Exam-Matlab

The document contains instructions for a Matlab exam with 4 parts: 1) Perform matrix operations like addition and multiplication on two matrices A and B, and calculate the determinant of A. 2) Solve symbolic calculus problems like expanding an equation, deriving a function, and integrating another function. 3) Use a For loop to calculate the sum of a series of terms. 4) Make two graphs in the same figure: the first with two functions f and g plotted against t, and the second with g plotted against f. Label and title the graphs.

Uploaded by

Pana Mann
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Institute of Technology of Cambodia

I3 2013

Exam-Matlab

Part: 1 - Matrix operations: (4)


Create the matrices A and B :

3 1 2
A = 1 3 1
2 1 3
Calculate:
C = A+B
E = A*B

1 3 1
B = 3 1 3
1 3 1
;
;

Determinant of A
Change first cell of A to value 0

Part: 2 Symbolic Calculation (4)


a) Expand the following equation:
z = (a-b)4
b) Derive the following function:
f = exp(2x) + cos(x)- 2x
c) Integrate the following function:
g = 5y2- cos(y)+ 2sin(y)
d) Calculate the roots of the following polynomial:
P = x4 2x2 + 3x - 2
Part: 3- Matlab Commands (4)
Use the For End commands to calculate the sum:
10

X = (
i =1

1
)
2i

Part: 4 graphs plotting (8)


Make two graphs in the same figure to plot the following two functions:
f =3 t2 + 2 t - 0.5
g = 2 t cos(t)
Where the variable t varies from 0 to 10 with step 0.5
Graph 1: f and g versus t
Draw f in blue 0, and g in red *.
Give title to your graph and label the axes.
Graph 2: g versus f
- Draw the plot using blue line.
- Give title to your graph and label the axes.

You might also like