I have this error approximation and I am trying to create two functions. One which loops over the values and the second which loops over input x values. So far I have
function b = erff(x,N);
a=x; b=a; c=1;
I'm not sure if my code is correct or how to only make it loop over n values and x values seperately.