how to solve my code with this error

49 visualizaciones (últimos 30 días)
DJIBRINE Abakar
DJIBRINE Abakar el 16 de Jul. de 2018
Comentada: Alexander Thif el 5 de Nov. de 2020
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 comentarios
Adam Danz
Adam Danz el 16 de Jul. de 2018
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 el 16 de Jul. de 2018
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. :)

Iniciar sesión para comentar.

Respuestas (2)

chirag rohit
chirag rohit el 23 de Oct. de 2019
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 comentarios
Keaton Cable
Keaton Cable el 29 de En. de 2020
Thank you!
Alexander Thif
Alexander Thif el 5 de Nov. de 2020
that was helpfull thank you for your answer!

Iniciar sesión para comentar.


solanki divyesh
solanki divyesh el 3 de Mzo. de 2020
i shaw an error like (undefined function 'matlab' for input arguments of type 'char'

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by