I have a function, which takes a variable number of inputs. For example, the functions may look like fn(a0,a1,...)
. Now, I have a vector A=[a0,a1,...]
, and I want to call fn
, but I'm not sure how to dynamically set the number of inputs (if handling outside of the function). I do not want to handle this inside the function.
How can I do this?