how to solve my code with this error
21 次查看(过去 30 天)
显示 更早的评论
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
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
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
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 个评论
solanki divyesh
2020-3-3
i shaw an error like (undefined function 'matlab' for input arguments of type 'char'
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!