MAT 581 HW 2 P2.1.5

MAT 581 HW 2 P2.1.5 - 2.0000 3.0000 plot(A...

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

View Full Document Right Arrow Icon
P2.1.5 >>x=[1:0.2:3]; >>a=[1 2 3]; >>y=polyval(a,x); >>for i=length(x):-1:1 ydiff(i)=2*x(i)+a(2); end >> A=polyfit(x,y,3) A = -0.0000 1.0000
Background image of page 1

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

View Full DocumentRight Arrow Icon
Background image of page 2
Background image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 2.0000 3.0000 plot(A,'-') B=polyfit(x,ydiff,3) B =-0.0000 0.0000 2.0000 2.0000 >> plot(B,'o') C=plot(x,y,'o') C = 174.0139...
View Full Document

This document was uploaded on 02/18/2011.

Page1 / 3

MAT 581 HW 2 P2.1.5 - 2.0000 3.0000 plot(A...

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