what does Simulink.Blockdiagram.getInitialState do
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I build a simulink block, and to run it, I use Simulink.BlockDiagram.getInitialState(getModel(obj)), but it keeps telling me some error:
Caused by: Error using ==> getInitialState at 24 Index exceeds matrix dimensions.
It is a C MEX function, I do not know how to dig into the code. Does anyone know what the error message means?
0 Commenti
Risposte (1)
Kaustubha Govind
il 29 Lug 2011
Simulink.BlockDiagram.getInitialState is a p-coded function, so you cannot look into it. However, the way you are calling it makes me suspicious about what getModel(obj) returns. Note that the input to Simulink.BlockDiagram.getInitialState must be a string containing the model's name (without the .mdl extension). So perhaps this is just a syntax error.
2 Commenti
Kaustubha Govind
il 31 Lug 2011
Are you able to update and run the model successfully, or are there any errors?
Vedere anche
Categorie
Scopri di più su Simulink Functions in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!