フィルターのクリア

Not enough input arguments - can't figure out what f-n missing argument

1 回表示 (過去 30 日間)
Timur
Timur 2013 年 5 月 2 日
Hi, I'm trying to test and play with this code:
But when I run it, I get "Not enough input arguments" error.
I can't figure out what parameters should I specify beforehand to be able to run the code.
Thanks
  4 件のコメント
Walter Roberson
Walter Roberson 2013 年 5 月 2 日
編集済み: Walter Roberson 2013 年 5 月 2 日
How are you running it? Which keys are you pressing, or which menu entries, or what command?
EI is the product of the Young's Modulus and the Moment of Intertia.
Timur
Timur 2013 年 5 月 2 日
編集済み: Timur 2013 年 5 月 2 日

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

回答 (1 件)

Walter Roberson
Walter Roberson 2013 年 5 月 2 日
If you attempt to run a function by pressing the Run button, then the function will be started without any input arguments. When the function attempts to access any of the arguments, MATLAB will generate the error about "not enough input arguments". MATLAB will not prompt for the arguments to be given. Also, MATLAB will not use variables of the same name that were created at the command line.
You need to start the function from the command line, passing in the appropriate values. For example, at the command line type
beam_deflection(10 * ones(1,1001), 4.19, 10, 0.01)

カテゴリ

Help Center および File ExchangeGraphics Objects についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by