You are on page 1of 2

SWAMI KESHVANAND INSTITUTE OF TECHNOLOGY, MANAGEMENT &

GRAMOTHAN, JAIPUR
First Internal Practical Examination, 2022-23
B.Tech. III Semester

Branch: Mechanical Engg. Subject: Programming using MATLAB (3ME4-24)


Maximum Marks: 10 Time: 45 minutes

1. Make a program to display even numbers between 1-30 using while loop. (3)

Program codes with Output :

2. Define below given matrix and write programming statements to display following:

a. Display only the values in the second column


b. Display only the values in the third row
c. Display only the value on the second column of the third row
d. Display sub matrix form by 2nd and 4th row and 3rd to 4th column (4)
Programming statements with Output :

3. Represent the following linear system of equations as a matrix and solve by using both inverse
method and backslash method:
x + 2y - z = 1
-2x - 6y + 4 z= -2
-x - 3y + 3z = 1 (3)
Program codes with Output :

You might also like