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

Mat1011 Calculus For Engineers - Matlab Assignment 1

The MatLab assignment involves: 1) Solving a system of equations using matrices. 2) Evaluating a symbolic function at points, plotting the function, and plotting it over a domain. 3) Plotting sine and cosine curves individually and together over a domain with labels and thickness. 4) Plotting a circle with given center and radius in red. 5) Using subplots to plot various trigonometric functions over an interval in a 3x2 grid.

Uploaded by

yash
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)
51 views1 page

Mat1011 Calculus For Engineers - Matlab Assignment 1

The MatLab assignment involves: 1) Solving a system of equations using matrices. 2) Evaluating a symbolic function at points, plotting the function, and plotting it over a domain. 3) Plotting sine and cosine curves individually and together over a domain with labels and thickness. 4) Plotting a circle with given center and radius in red. 5) Using subplots to plot various trigonometric functions over an interval in a 3x2 grid.

Uploaded by

yash
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

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