07.01.2015 Views

Math 4330 Sec. 1, Matlab Assignment # 1, March 24, 2006 Name 1 ...

Math 4330 Sec. 1, Matlab Assignment # 1, March 24, 2006 Name 1 ...

Math 4330 Sec. 1, Matlab Assignment # 1, March 24, 2006 Name 1 ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

(a) For each δ (above) set b_e= 10^(-4)*rand(2,1); then solve A δ x δ,ǫ = b e .<br />

(b) Consider the error obtained between x and x δǫ .<br />

,<br />

(c) Repeat parts (a) and (b) above withb_e= 10^(-5)*rand(2,1);<br />

,<br />

5. Given the matrices<br />

solve the matrix equations:<br />

(a) AX + B = C,<br />

A =<br />

[ ]<br />

5 3<br />

, B =<br />

3 2<br />

[ ]<br />

6 2<br />

, C =<br />

2 4<br />

[ ]<br />

4 −2<br />

,<br />

−6 3<br />

(b) AX + B = X,<br />

(c) XA + B = C,<br />

(d) XA + C = X.<br />

6. Let A = round(10 ∗ rand(6)). Change the sixth column as follows. Set<br />

B=A’<br />

% (take the transpose of $A$)<br />

now type<br />

A(:,6)=-sum(B(1:5,:))’<br />

(a) Explain what this last command does

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!