%spectralflatnesserror.m
function [e]=spectralflatnesserror(x,n)
res=lpc(x,n)';
e=abs(fft(res,1024)).*abs(fft(x,1024))';
