0% found this document useful (0 votes)
54 views

Part2 PDF

This document contains code to solve a system of linear equations in matrix form. It defines a matrix A and vector B, representing the coefficients of the equations. It then uses the linsolve function to solve for the variables x, y, z and w, by inverting matrix A and multiplying it by B.

Uploaded by

Mujtaba Hussein
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
54 views

Part2 PDF

This document contains code to solve a system of linear equations in matrix form. It defines a matrix A and vector B, representing the coefficients of the equations. It then uses the linsolve function to solve for the variables x, y, z and w, by inverting matrix A and multiplying it by B.

Uploaded by

Mujtaba Hussein
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

10/7/17 12:39 AM C:\Users\Mujtaba\Desktop\To Do...\part2.

m 1 of 1

clc
clear all
%% Part 2
% first we write the equations in matrix form
A=[1,3,6,-2; 1,1,-1,5; 3,1,0,6; -2,7,-3,1] % matrix A
B=[2;-6;3;11] % matrix B
x = linsolve(A,B) % solves the variables x,y,z and w

You might also like