ENGR 132 - QUIZ1

# ENGR 132 - QUIZ1 - Quiz 1 1 Give the names of the four...

This preview shows pages 1–6. Sign up to view the full content.

Click to edit Master subtitle style 4/24/11 ENGR 132 Thurs/Tues 9:30-11:30

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
4/24/11 Quiz 1 1) Will the following variable names cause an error if used in Matlab? If so, explain what is wrong with the variable name. a) total_sum b) 132homework c) grade% 1) Assume x=5 has been entered in the command window. Give the line of Matlab code required to compute the following, 9 3 5 27 2 3 5 ) ( / + = a x e x y 5 2 + =
4/24/11 Solution 1) a) no error b) error, can’t start with a number c) error, can’t use special characters 2) a) ) * exp( * / )) ^ ( * ) / ( ^ ( x x y a 5 2 9 2 3 5 3 5 27 + = + = +2 +1, +1 +1, +1 +2 +2

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
Click to edit Master subtitle style 4/24/11 ENGR 132 Wed/Fri 3:30-5:30
4/24/11

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Quiz 1 1) Give the names of the four Matlab windows discussed class. 1) Is the following a valid Matlab variable name? Why? 7pm_Jan12 1) Assume x=5 has been entered at the Matlab command prompt (there is a variable x defined ) ( / 2 2 1 7 5 2 + = a 3 10 5 + + =-x e y x 4/24/11 Solution 1) Command window, workspace, command history, current folder 1) No, it starts with a number 1) a) 3 10 5 2 7 2 1 5 2 / ) * ) (exp( ) ^ ) / ( ^ ( * + +-= + = x x y a +1,+1,+ 1,+1 +2 +2 +1,+1 Can have “window” in any/all...
View Full Document

{[ snackBarMessage ]}

### Page1 / 6

ENGR 132 - QUIZ1 - Quiz 1 1 Give the names of the four...

This preview shows document pages 1 - 6. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online