'This statement is incomplete' for a function with enough parameters
2 views (last 30 days)
I have a function gen_a with the following header:
function predictor = gen_a (P, S, B, func1, func2, func3)
func1, func2, and func3 are all character vectors, corresponding to a lookup table of functions.
However, when I try to run the following line in my driver code:
func1 = strcat('f', int2str(0));
gen_a (P1, S1, B1, func1, 'f1', 'f0')
I get the error in the image. Is there something I am missing in this function call?