function [ s ] = matlabpoly1(p)
%MATLABPOLY1 returns a tring representing p as a Matlab expression
%   Minas Spetsakis, (and a few bright students), March 2021

l = length(p);
s = '';
for i = 1:l
    s = strcat(s,sprintf('%g*x^%d',p(i), l-i));
    if l~=i
        s = strcat(s,sprintf(' + '));
    else
        s = strcat(s,sprintf(';\n'));
    end
end
end

