basicmatr - % p1=[1.0,2,-12]; p2=[1,X(j)]; %conv produces...

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

This note was uploaded on 09/11/2011 for the course MECH 231 taught by Professor Den during the Spring '11 term at Rutgers.

Ask a homework question - tutors are online