function [ equation ] = coefficients2equation( coefficients )
equation = [];

for i = 1 : length( coefficients ) - 1
    equation = [ equation sprintf( '%+d.*x.^%d' , coefficients( i ) , ...
        length( coefficients ) - i ) ];
end

equation = [ equation sprintf( '%+d' , coefficients( end ) ) ];
end