DeGracia_Miguel_19481379_lab9

DeGracia_Miguel_19481379_lab9 - % Miguel De Gracia....

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

View Full Document Right Arrow Icon
%% Miguel De Gracia. 19481379. Section 22. Lab Assignment 9. % %% Problem 1a % % Chapter 2 Problem 35a % A=[2 1;3 -9]; b=[5;2]; X=A\b; inv(A)*A; %This produces the identity matrix signifying that we are correct. % %% Problem 1b % % Chapter 2 Problem 35b % A=[-8 -5;-2 7]; b=[4;10]; X=A\b; inv(A)*A; %This produces the identity matrix signifying that we are correct. % %% Problem 1c % % Chapter 2 Problem 35c % A=[12 -5 0;-3 4 7;6 2 3]; b=[11;-3;22]; X=A\b; inv(A)*A; %This produces the identity matrix signifying that we are correct. % %% Problem 1d % % Chpater 2 Problem 35d % A=[6 -3 4;12 5 -7;-5 2 6]; b=[41;-26;14]; X=A\b; inv(A)*A; %This produces the identity matrix signifying that we are correct. % %% Problem 2 % type LinearEquationTest t A=[-2 1;1 1]; b=[-3;3]; LinearEquationTest(A,b) L A=[-2 1;-2 1]; b=[-3;1]; LinearEquationTest(A,b) L A=[-2 1;-6 3]; b=[-3;-9]; LinearEquationTest(A,b)
Background image of page 1

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

View Full DocumentRight Arrow Icon
L A=[1 1;1 -1;0 1]; b=[1;0;1]; LinearEquationTest(A,b) L A=rand(3,4); b=rand(3,1); LinearEquationTest(A,b)
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 02/18/2010 for the course ENGINEERIN 7 taught by Professor Patzek during the Spring '08 term at Berkeley.

Page1 / 4

DeGracia_Miguel_19481379_lab9 - % Miguel De Gracia....

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

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