function c = flip(p) % % Returns the coefficients of p(-x), % flipping the sign of the coefficients % with odd powers of x. % c = p; for i=1:length(p) if (mod(i,2) == 0) c(i) = -c(i); end; end;