I have a function in matlab. When I try to run the file I get an error which says "Input Argument undefined". Please anybody let me know what can be done with this.
Thanks in advance Smith.

 採用された回答

Titus Edelhofer
Titus Edelhofer 2011 年 7 月 4 日

0 投票

Hi,
this error comes if you call a function without the input argument. Say your function looks like
function y = myfun(x)
the function expects to be called like this, e.g.
y = myfun(42);
If you just call
y = myfun
you will get this error. Does this help?
Titus

1 件のコメント

Smith
Smith 2011 年 7 月 5 日
Thanks to you Titus, it worked.

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange で Structures についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by