Professional Documents
Culture Documents
Quiz 5 Mechanical
Quiz 5 Mechanical
Name:
Time:
15 minutes
Class:
2009- Mechanical
Engineering
Date:
2009-ME-383
Marks:
30
Roll
Num
ber:
Instructions
There wont be any credit for over-writing or cutting the answers. Staring at
others papers could result in cancellation of your quiz.
Question 1:
2 marks
a.>>
b.>>
Question 2:
a. x = [ 0:(2^2)^2:50]
b. y = [ 4: 4+4-4+2-1-4:10]
a.>>
b.>>
Question 3:
YES
b. x =
c. z =
NO
eye(3).*ones(2)
zeros(2,3) * ones(3,2)
linspace(1,1,1)
Question 4:
Computer Fundamentals
b. A(:, [1 4])
d. [A A]
e. [A; A]
Question 5:
Draw the plots for the following programs.% just show what kind of shape
would it be.
8 marks
a. x = [ -10:10 ]
y = x.*x;
plot (x,y);
b. y = [ -10:10 ]
x = y.*y;
plot (x,y);
Figure a
Figure b