from Butterworth Filter by Zeeshan Shareef
It is the Function file for calculating the components values for the Butterworth Filter.

synth.m
function[val]=synth(n,d,x)      % The Purpose of  this Function is the Synthetic Division
                                % x = Order of the Filter
                                % n = Numerator of the Polynnomial
                                % d = Denominator of the Polynomial                               
                               
for i=1:x
    
    [q,r]=deconv(n,d);
    q=adjust(q);        % Adjusting the Quotient
    r=adjust(r);        % Adjusting  the  Remainder
    val(i) = roundf(q(1));      % Round Off the Quotient's First term
    n=d;
    d=roundf(r(1,3:length(r)));
    
end

Contact us at files@mathworks.com