how to solve my code with this error

31 ビュー (過去 30 日間)
DJIBRINE Abakar
DJIBRINE Abakar 2018 年 7 月 16 日
コメント済み: Alexander Thif 2020 年 11 月 5 日
how to solve my code with this error;A valid state attribute should be either a character vector, a cell array or a valid MATLAB structure
  2 件のコメント
Adam Danz
Adam Danz 2018 年 7 月 16 日
Can't fix what we can't see :)
You'll need to share the section of code causing the error and any relevant variable values.
OCDER
OCDER 2018 年 7 月 16 日
But we can make a guess on how to fix the error - Convert the state attribute to a character vector, a cell array, or a valid MATLAB structure. :)

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

回答 (2 件)

chirag rohit
chirag rohit 2019 年 10 月 23 日
In your simulink model there must be an integrator. And in properties of integrator you have changed below input,
State Name: (e.g., 'position')
''
Whatever name you write here it should be alwasy within ''. Or just leave that input as ''.
It might solve your error.
  2 件のコメント
Keaton Cable
Keaton Cable 2020 年 1 月 29 日
Thank you!
Alexander Thif
Alexander Thif 2020 年 11 月 5 日
that was helpfull thank you for your answer!

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


solanki divyesh
solanki divyesh 2020 年 3 月 3 日
i shaw an error like (undefined function 'matlab' for input arguments of type 'char'

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by