I have more than hundred of input parameters in myfunc and I am using the following way to call the function after grouping the parameters in the cell array C.
C = {a,b,c};d = myfunc(C{:});function d = myfunc(a,b,c)d = a * b + c; end
I am wondering wether the following way is better or not
C = {a,b,c};d = myfunc(C);function d = myfunc(C)[a,b,c] = C{:};d = a * b + c;end
Best Answer