Docsity

Programming Concepts Mechanical Engineering - Quiz 2 | EML 3035, Quizzes of Mechanical Engineering

Toggle sidebar
bg1
Quiz#2 September 17, 2007 Section 001 Name ________________________
1. To solve a set of eqns 2x+3y=5;3x+15y=8, the correct Matlab input is
(A) [2 3 ; 3 15] / [5 ; 8]
(B) [2 3 ; 3 15] \ [5 ; 8]
(C) [2 3;3 15] / [5 8]
(D) [2 3;3 15] \ [5 8]
2. To find tan-1(0.5), you would write the Matlab input as
_________________________________________
3. polyfit command, for example, polyfit(x,y,2) regresses y vs x data. What does the 2
stand for in the third argument of the polyfit example.
>>____________________________________
4. The Matlab input for solving for the roots of x2-3x+2=5 is
>>syms x
>> ________________________________________
5. If what would be Matlab output of a .* a
⎥
⎦
⎤
⎢
⎣
⎡
=76
32
a
6. Extra Credit Question:
What do you like most about the course? (The answer cannot be “nothing” and it needs
to be a complete and grammatically correct sentence.)
__________________________________________________________________

Partial preview of the text

Download Programming Concepts Mechanical Engineering - Quiz 2 | EML 3035 and more Quizzes Mechanical Engineering in PDF only on Docsity!

Quiz#2 September 17, 2007 Section 001 Name ________________________

  1. To solve a set of eqns 2x+3y=5;3x+15y=8, the correct Matlab input is

(A) [2 3 ; 3 15] / [5 ; 8]

(B) [2 3 ; 3 15] \ [5 ; 8]

(C) [2 3;3 15] / [5 8]

(D) [2 3;3 15] \ [5 8]

  1. To find tan

    (0.5), you would write the Matlab input as 

_________________________________________

  1. polyfit command, for example, polyfit(x,y,2) regresses y vs x data. What does the 2

stand for in the third argument of the polyfit example.

>>____________________________________

  1. The Matlab input for solving for the roots of x

2 -3x+2=5 is

>> syms x

>> ________________________________________

5. If what would be Matlab output of a . a* ⎥ ⎦

a

6. Extra Credit Question:

What do you like most about the course? (The answer cannot be “nothing” and it needs

to be a complete and grammatically correct sentence.)