poly_adder - a=zeros(1,m); poly3=poly1+[a poly2]; else

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

View Full Document Right Arrow Icon
function poly3 = poly_adder (poly1, poly2) f if length(poly1)==length(poly2) poly3=poly1+poly2; elseif length(poly1)>length(poly2); m=length(poly1)-length(poly2);
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: a=zeros(1,m); poly3=poly1+[a poly2]; else length(poly1)<length(poly2); d=length(poly2)-length(poly1); g=zeros(1,d); poly3=poly2+[g poly1]; end...
View Full Document

This note was uploaded on 02/18/2010 for the course ENGINEERIN 7 taught by Professor Patzek during the Spring '08 term at Berkeley.

Ask a homework question - tutors are online