MATLAB Answers

Error:Brace indexing is not supported for variables of this type.

2 ビュー (過去 30 日間)
Nathaniel Goldfarb
Nathaniel Goldfarb 2021 年 7 月 15 日
コメント済み: Fangjun Jiang 2021 年 7 月 30 日
I am using the Responce optmization toolbox to optmize my controller and I am getting the following error:
=== Design Optimization (Elapsed: 0.253 sec) ===
Error:Brace indexing is not supported for variables of this type.
What I dont understand is the model will run for a while and succesful test different parameters. I can monitor the output and the convergres of the system. Then it will just throw the above error at some point. What is cauing this error. It would really help if it told me where this is occuring so I can track the error.
  2 件のコメント
Nathaniel Goldfarb
Nathaniel Goldfarb 2021 年 7 月 30 日
Right but how can I nail down exactly where the error is happening? The stack trace is terrible.

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

採用された回答

Fangjun Jiang
Fangjun Jiang 2021 年 7 月 30 日
編集済み: Fangjun Jiang 2021 年 7 月 30 日
Run "dbstop if error" in MATLAB Command Window first and then run your optimization. Hopefully you will be able to see the line of the source code when the error happens.
  2 件のコメント
Fangjun Jiang
Fangjun Jiang 2021 年 7 月 30 日
If the error pops up at the Simulink diagnostic window, you may not be able to see where in the source the error happened. But try it anyway.

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

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by