フィルターのクリア

Error in ==> thestest at 2 if(nargin == 2), ??? Output argument "y" (and maybe others) not assigned during call to "C:\Users\ raj\Docume​nts\MATLAB​\thestest.​m>thestest​".

2 ビュー (過去 30 日間)
This is the error message generated while running my function please tell me the reason for this error

採用された回答

David Young
David Young 2012 年 1 月 17 日
It's a bit hard to say as you don't show the code in your question, but it may be that you have not assigned a value to the output argument "y" (and maybe others) in your function thestest.
That is, if your function starts
function y = thestest(...)
there should be a line in it somewhere that looks like
y = ... ;
You should perhaps also look at the structure of the m-file. Does it contain more than one function definition?
  2 件のコメント
raj
raj 2012 年 1 月 17 日
yaa there is an other function in my code
David Young
David Young 2012 年 1 月 17 日
OK, I guess it is just that you need some assignment to y.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by