Why am I getting "Not enough input arguments" error
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
David Miller
el 5 de Jun. de 2016
Comentada: David Miller
el 5 de Jun. de 2016
I am running my_driver which calls bugs_shape function in another .m file and this is the error I get:
>> run my_driver
Not enough input arguments.
Error in bugs_shape (line 39)
vel(:, k) = proj(angles(k,1))*direction;
Error in my_driver (line 51)
[posFinal, min_dist] =
bugs_shape(options, prams, posInit,
angles);
Error in run (line 96)
evalin('caller', [script ';']);
vel array is a 2xN array, proj is a function that takes an angle as an argument an returns a 2x2 array and direction is a 2x1 array.
2 comentarios
Walter Roberson
el 5 de Jun. de 2016
We need to see your function declaration for bugs_shape and we need to see your function definition for proj
Respuesta aceptada
Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!