Vectorize Matlab sum
Vectorized approach:

res = sum(abs(x(:).'.^(2:numel(x)+1)))


Read more about vectorization techniques here.

Thus, your function would look like this:

function res = a3_funct(x)
    res = sum(abs(x(:).'.^(2:numel(x)+1)));
return