This preview shows page 1. Sign up to view the full content.
Unformatted text preview: B = vec2(:,1:end1); %obtains the first two columns of the vector2 array new = [A;B]; %vertically concatenates the new arrays C = vec(:,end); %gets the last column of the vector array D = vec2(:,end); %gets the last column of the vector2 array new2 = [C;D]; %vertically concatenates the new arrays sol = new\new2; %solves the system of equations by backdividing x = sol(1,1); %the x value is the 1st entry of the solution y = sol(2,1); %the y value is the 2nd entry of the solution end e...
View
Full
Document
This note was uploaded on 10/21/2010 for the course CS 1371 taught by Professor Stallworth during the Spring '08 term at Georgia Institute of Technology.
 Spring '08
 Stallworth

Click to edit the document details