You are on page 1of 2

MATLAB assignments

1. Write the MATLAB codes for solving following problem

a) Plot sin(x) and cos(x) over [0,2π], on the same plot with different colours

b) Solve the following equation

3x1 + 4x2 + 7x3 = 6


5x1 + 2x2 - 9x3 = 1
-x1 + 13x2 + 3x3 = 8

1 2 0
c) A= 2 5 −1 , Find Eigen value, transpose, Inverse, Determinant of the matrix A
4 10 −1

d) Find the root of following equations

4x3 + 2x2 -200x – 500 = 0


e) Solve following ODE equations

dy
 4 y (t )  e t , for 1  t  3, with y  1 at t  0
dt

dy t 2  3 y
 , for 1  t  3, with y  4 at t  1
dt t
f) Given the data set 4 , 10 , 7 , 7 , 6 , 9 , 3 , 8 , 9 Find the mean, median, mode, STD

g) Calculate the regression coefficient and obtain the lines of regression for the following data

X 1 2 3 4 5 6 7

Y 9 8 10 12 11 13 14

h) Find the numerical integration of following function


8
q   ( xe  x  1)dx
n

0
Excel sheet – Tutorial problems
1. Create design sheet for the designing of a RC beam for Bending, Shear and Torsional
forces. The format for excel sheet should such that input data will be section size,
Force values, Concrete and steel grades. Output should be in terms of area of the
reinforcement and number of bars for a diameter selected.

Note:
1. Each student should submit the above tutorials on or before May 12
2. Use only script files for writing MATLAB codes. Use separate script file for each
problem. DON’T USE COMMAND WINDOW FOR WRITING CODES.
3. Assume suitable data wherever missing
4. Students can send MATLAB and Excel files of the tutorial problems through email

You might also like