You are on page 1of 1

MAT1011 Calculus for Engineers - MatLab Assignment 1

1. Write a MatLab code to solve the system of equations 3x+y=-1;2x+4y+z=7;2x+5z=9 using


matrices.

2. Read the variable x as a symbol, read the function ( ) = + 3 + 2.


(i) Using 'subs' command find the value of (2), (10).
(ii) Plot the graph of the function using 'ezplot'.
(iii) Taking the domain −10 ≤ ≤ 10, plot the graph of the function y = ( ).
Indicate the x-label, y-label, title of the graph. Set the thickness of the line as 2 points.

3. For the domain −3 ≤ ≤ 3


(i) Plot the curve y=sin x.
(ii) On the same graph superimpose the curve y=cos x.
(iii) Indicate the x-label, y-label, legend, title of the graph. Set the thickness of the line as
2 points.
(iv) Show the curves in two different colors.

4. Plot the circle with centre at (1,2) and radius 3 in red colour

5. Using subplot command draw the graphs of sin(x), sin(2x), cos(x), cos(2x), and in the
interval [−2 , 2 ] in three rows and two columns

You might also like