Error: 'N' undefined near line 9 column 13

6 ビュー (過去 30 日間)
João Carvalho
João Carvalho 2017 年 10 月 22 日
回答済み: Steven Lord 2017 年 10 月 22 日
I don't understand where is the problem of this error. Thanks for help.
  4 件のコメント
Walter Roberson
Walter Roberson 2017 年 10 月 22 日
When you invoke the function just by commanding
senhx
then where are you expecting it to find a value for N ?
Robert Henson
Robert Henson 2017 年 10 月 22 日
Are you typing the command
senhx
in the Command Window?
Or are you pressing the "Run" button in the editor?

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

回答 (1 件)

Steven Lord
Steven Lord 2017 年 10 月 22 日
If you try to run this function using the green triangle Run button, that will call this function with no input arguments. But this function requires you to specify its input. You can change this using the procedure described on this documentation page or by typing the function name (with input and output arguments specified) at the prompt in the Command Window.

カテゴリ

Help Center および File ExchangeEntering Commands についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by