{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

basicmatr - p1=[1.0,2-12 p2=[1,X(j%conv produces product of...

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

View Full Document Right Arrow Icon
%x^3-2x+12% %[1,0,-2,12] % %poly creates polynomial with roots poly([1,2,3]) %(x-1)*(x-2)*(x-3) poly(X(j)) %linear polynomial (x-X(j)) %X(j)=one of x values of data points
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: % p1=[1.0,2,-12]; p2=[1,X(j)]; %conv produces product of 2 polynomials conv(p1,p2) %output vector=coefficients of result poly...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online