Error in ==> thestest at 2 if(nargin == 2), ??? Output argument "y" (and maybe others) not assigned during call to "C:\Users\ raj\Documents\MATLAB\thestest.m>thestest".
조회 수: 2 (최근 30일)
이전 댓글 표시
This is the error message generated while running my function please tell me the reason for this error
댓글 수: 0
채택된 답변
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
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!