HW10_ruzmora

# HW10_ruzmora - %Chapter 6 Problem 11a%This program solves a...

This preview shows pages 1–2. Sign up to view the full content.

Sheet1 Page 1 %Chapter 6 Problem 11a %This program solves a system of equations by using both the matrix left %division and the inverse matrix methods clc clear all %Solve the system using the inverse matrix method a=[-2 1 1 1] b=[-3 3] x_a=inv(a)*b %Solve the system using the matrix left division method x_a2=a\b %Chapter 6 Problem 11b %Solve the system using the inverse matrix method a_2=[10 -7 0 -3 2 6 b_2=[7 4 x_b=inv(a_2)*b_2 %Solve the system using the matrix left division method x_b2=a_2\b_2 %Chapter 6 Problem 11c %Solve the system using the inverse matrix method a_3=[1 4 -1 1 2 7 1 -2 b_3=[2 16 x_c=inv(a_3)*b_3 %Solve the system using the matrix left division method x_c2=a_3\b_3 %Chapter 6 Problem 14a %This program asks the user to input the number of atoms of elements that %make up amino acids and then it calculates the molecular weight clc clear all %Ask the user to input number of atoms O=input('Please enter number of oxygen atoms :') C=input('Please enter number of carbon atoms :')

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

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### Page1 / 6

HW10_ruzmora - %Chapter 6 Problem 11a%This program solves a...

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

View Full Document
Ask a homework question - tutors are online