I want to creat a function with multiple variables, something like:
f = @(x) = f1(x) + f2(x) + ...
where x is a n-dimensional vector which can be define by user. The number of functions f1,f2,..,fn can be define by user, too.
The question is can i use a for loop in function handle to define f according to the length of vector x?