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 CenterFile Exchange에서 String에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by