If I call matlab function with:
FUNC (1,2,3,4,5)
it works fine.
But if I do this:
a = [1,2,3,4,5] % (a [1; 2; 3; 4; 5] gives the same result)
then
FUNC (a)
gives me:
??? Error ==> func at 11 There are not enough input arguments.
Line 11 in func.m:
error (nargchk (5, 6, nargin));
I notice this works fine:
FUNC (a (1), (2), (3), (4), (5))
How can I use the vector 'a' as a parameter to a function? I have another function otherfunc (b) that returns a, and would like to use its output as a parameter, such as func (otherfunc (b)) .