フィルターのクリア

Undefined operator '==' for input arguments of type 'struct'. Error in decic (line 41) free_yp = find(fixed_yp0 == 0); Error in IMWFGD (line 111) [y0, yp0] = decic(f, t0, y0est, yp0est, [], opt) >>

1 回表示 (過去 30 日間)
Dursman Mchabe
Dursman Mchabe 2018 年 5 月 20 日
コメント済み: Dursman Mchabe 2018 年 5 月 22 日
Hi all, I am trying to run a script to solve 10 DAEs, but I get an error message " Undefined operator '==' for input arguments of type 'struct'.
Error in decic (line 41) free_yp = find(fixed_yp0 == 0);
Error in IMWFGD (line 111) [y0, yp0] = decic(f, t0, y0est, yp0est, [], opt)"
Please see the attachment for the script.
  7 件のコメント
Dursman Mchabe
Dursman Mchabe 2018 年 5 月 20 日
Is it a good idea to change the operator "==" to "isequalto"?
Walter Roberson
Walter Roberson 2018 年 5 月 20 日
"Is it a good idea to change the operator "==" to "isequalto"?"
No.

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

回答 (1 件)

Walter Roberson
Walter Roberson 2018 年 5 月 20 日
The sixth input to decic needs to be fixed_yp0 . You have passed opt there, and your opt is a structure.
It looks to me as if you omitted the fixed_y0 argument.
  6 件のコメント
Guillaume
Guillaume 2018 年 5 月 21 日
I don't have the symbolic toolbox so can't do any testing and I don't know how daeFunction works.
Something called by f is not happy about the number of arguments it receives. So first checked, that you've passed the right number of arguments to F. Possibly, use the 'File' option of daeFunction to generate an m file instead. It may aid in debugging as it will error on a particular line of the file rather than in an anonymous function.
Dursman Mchabe
Dursman Mchabe 2018 年 5 月 22 日
Thanks a lot for your efforts Guillaume.

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

カテゴリ

Help Center および File ExchangeEquation Solving についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by