MATLAB comp progHW2

MATLAB comp progHW2 - Fall 2010 Dr Frank Shih CS 101...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
Fall 2010, Dr. Frank Shih Homework #2 DUE: 11:55pm, September 23, 2010 NOTES: Submit the homework solution in Microsoft Word format to http://moodle.njit.edu/ before the above deadline. Absolutely, no late submission is accepted. Write the answers in your own words individually. Any plagiarism will post a “ZERO” score or cause a “FAIL” grade. 2.1 (20 points) Answer: >> arr1=[1.1 0.0 -2.1 -3.5 6.0; 0.0 -3.0 -5.6 2.8 4.3; 2.1 0.3 0.1 -0.4 1.3; -1.4 5.1 0.0 1.1 -3.0] arr1 = 1.1000 0 -2.1000 -3.5000 6.0000 0 -3.0000 -5.6000 2.8000 4.3000 2.1000 0.3000 0.1000 -0.4000 1.3000 -1.4000 5.1000 0 1.1000 -3.0000 >> arr1(3,:) ans = Columns 1 through 4 2.1000 0.3000 0.1000 -0.4000 Column 5
Background image of page 1

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

View Full Document Right Arrow Icon
Fall 2010, Dr. Frank Shih 1.3000 >> arr1(:,3) ans = -2.1000 -5.6000 0.1000 0 >> arr1(1:2:3, [3 3 4]) ans = -2.1000 -2.1000 -3.5000 0.1000 0.1000 -0.4000 >> arr1([1 1],:) ans = Columns 1 through 3 1.1000 0 -2.1000 1.1000 0 -2.1000 Columns 4 through 5 -3.5000 6.0000 -3.5000 6.0000
Background image of page 2
Fall 2010, Dr. Frank Shih
Background image of page 3

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

View Full Document Right Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

Page1 / 5

MATLAB comp progHW2 - Fall 2010 Dr Frank Shih CS 101...

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

View Full Document Right Arrow Icon
Ask a homework question - tutors are online