Why do I receive an error using FEVAL when I do not have sufficient output arguments defined in the function I am calling?
6 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
??? One or more output arguments not assigned during call to 'feval'.
Error in ==> D:\Applications\Matlab\6p5LCS\work\test_feval.m
On line 3 ==> [a,b,c,d] = feval('local_test',1,2,3);
In R12.1 and previous versions of MATLAB the same function would produce the following warning
Warning: One or more output arguments not assigned during call to 'feval'.
> In D:\Applications\Matlab\6p5LCS\work\test_feval.m at line 3
Respuesta aceptada
MathWorks Support Team
el 22 de En. de 2010
You should define all explicit output arguments that are declared on the function declaration line. The behavior you are seeing occurs if you call any function that does not define all the variables declared in the function declaration line.
This is an intended behavior; The warning was strengthened to show errors in your user-written MATLAB code.
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Performance and Memory en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!