Why do I receive an error using FEVAL when I do not have sufficient output arguments defined in the function I am calling?

4 ビュー (過去 30 日間)
??? 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

採用された回答

MathWorks Support Team
MathWorks Support Team 2010 年 1 月 22 日
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 件)

カテゴリ

Help Center および File ExchangePerformance and Memory についてさらに検索

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by