MAT 581 HW 2(2.2.4)

MAT 581 HW 2(2.2.4) - Enter 1*6 matrix of a-values: [12 4...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
P2.2.4 z= input('Enter matrix of z-values to compute: '); Enter matrix of z-values to compute: [72 382 32 12 2 3] >> n=length(z); >> L= input('Enter value of L to compute: '); Enter value of L to compute: 5 >> R= input('Enter value of R to compute: '); Enter value of R to compute: 2 >> a= input('Enter 1*6 matrix of a-values: ');
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Enter 1*6 matrix of a-values: [12 4 23 1 7 1] >> x= input('Enter which z(i) to compute: '); Enter which z(i) to compute: 2 >> q=a(1)+a(2)*(z(x)-L)+a(3)*((z(x)-L)^2)+a(4)*((z(x)-L)^3)+a(5)*((z(x)-L)^3)*(z(x)-R)+a(6)*((z(x)-L)^3)*((z(x)-R)^2) q = 7.8799e+012...
View Full Document

Ask a homework question - tutors are online