フィルターのクリア

idgrey error "too many arguments"

3 ビュー (過去 30 日間)
Dave
Dave 2016 年 8 月 7 日
回答済み: Dave 2016 年 8 月 9 日
When executing the idgrey command that includes "optional arguments" MATLAB appears to insert a zero at the beginning of the list of optional arguments and it then throws the error that there are too many arguments in the call to my ode function named in the idgrey command. What's going on???
I have read and re-read the documentation on idgrey, but to no avail.
Thanks
  9 件のコメント
Walter Roberson
Walter Roberson 2016 年 8 月 8 日
Which one of the variables named is the time input to the ode?
Dave
Dave 2016 年 8 月 8 日
there is no explicit time input. The ode function simply determines the ABCD matrix quadruple for the linear model of the ODEs.

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

採用された回答

Dave
Dave 2016 年 8 月 9 日
OK, here's the answer. Even though I found no mention of this in the documentation, "idgrey" passes the sampling interval "Ts" in the user supplied ode function input argument list, in addition to any additional arguments that need to passed. Consequently, since I passed just the list of arguments necessary, I received the error "Too many arguments." This issue was resolved by adding the dummy argument "Ts" in the ode function argument list, even though with a continuous system the sampling interval is known to be zero.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeOrdinary Differential Equations についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by