I'm getting error:
Error in three (line 5) a(k+1) = a(k) + b(k);
function out = three(a,b,N) a(1) = a; b(1) = b; for k = 1:N-1 a(k+1) = a(k) + b(k); end end
error
function out = three(a,b,N) a(1) = a; b(1) = b; for k = 1:N-1 a(k+1) = a(k) + b(k); end end
Best Answer