Test1A_F09

# Test1A_F09 - TEST#1 PGE 310 Name Signature UT EID NOTES 1...

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

TEST #1 (Feb 19, 2009) PGE 310 Name: Signature: UT EID: NOTES: 1. You have 1 hour and 15 minutes. Points will be deducted for tests turned in after 1:45 2. Write your name (or EID) on all pages of the test 3. SHOW ALL WORK. Partial (or any credit) cannot be given for problems without work shown

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

View Full Document
1. Short Answer. SHOW ALL WORK (40 points) Consider the following arrays for problem 1 x=[2 -1 4]; y=[ -1 3 2]; A=[1 -1 2; 2 3 -1]; B= [2 0 1; -1 2 -2]; (a) Determine if x and y’ are orthogonal. (a) Determine if the vector x or the vector y is larger in magnitude. Use the L 1 norm to support your answer. (b) Compute >> A.^B (c) Compute >> x(2:3)*A (d) Using a single command replace the number in the 2 nd row and 1 st column of A with the number in the 1st row and 2nd column of B >>
(e) Write the MATLAB code that is equivalent to the following ∑ ∑ = = + 99 5 , 3 , 1 5 1 3 i j j i (f) Create the following vector using a single command in MATLAB: C=[10 1.1 10 1.2 10 1.3 ….10 9.0 ] (f)

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

View Full Document
2. Consider the following Matlab code written in a script file and determine the value
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### Page1 / 7

Test1A_F09 - TEST#1 PGE 310 Name Signature UT EID NOTES 1...

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

View Full Document
Ask a homework question - tutors are online