Q1_Sec01_Part+1_sol

# Q1_Sec01_Part+1_sol - 650:231 M.E Computational Analysis...

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

650:231 M.E. Computational Analysis and Design, Spring 2010 Quiz 1 Use this answer sheet to submit your answer. Your Name: _______________________ Your ID #: _________________________ PART 1 (50 Points) This is a closed book exam. No access to the computer and the use of MATLAB. 1. [5 Pts.] Create a vector v=(-50, -45, -40, …, 40, 45, 50) a. [1 Pt.] manually (you do not have to show them all), v=[-50, -45, -40,…, 40, 45, 50] b. [2 Pts.] using linspace , linspace(-50,50,21) c. [2 Pts.] using colon notation. -50:5:50 2. [5 Pts.] Create a 1x10 row vector with each element equal to ten (10) a. [2.5 Pts.] manually, [10,10,10,10,10,10,10,10,10,10] b. [2.5 Pts.] using ones 10*ones(1,10) 3. [5 Pts.] What is the output of the following commands? >> >> j=[1, 2, 5 , 7, 9]; >> y=x(j) y =

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

View Full Document
650:231 M.E. Computational Analysis and Design, Spring 2010 Quiz 1 0 2 8 12 16 4. [5 Pts.] Let A be 10X10 matrix. Give the colon notation to get a. [2.5 Pts.] the entire column 8, A(:,8) b. [2.5 Pts.] the entire row 10.
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### Page1 / 4

Q1_Sec01_Part+1_sol - 650:231 M.E Computational Analysis...

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

View Full Document
Ask a homework question - tutors are online