I've tried 2 different lines within my code with variations of both, but nothing seems to be working. Any help would be appreciated.
The polynomial to be called is:
c0 +c(1)x1 +c(2)x2+...+c(N)xN
and below are my 2 attempts:
function p = poly_val(c0,c,x) p = sum([c0 c] .* (x.^[0:length(c)]));
or
p = (c0 + polyval(c*(x.^c)));
Best Answer