Structure arrays in Matlab2016
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Today I faced out the problem with loading of structures in Matlab2016.
My former model was initially designed in Matlab2013 and than was converted to Matlab2014. Parameters of model were initially stored as fields of structure and than loaded to workspace and only than from workspace easily loaded to exact model. After conversion of model to Matlab2016 I faced out, that fields of structure, which is now stored to the correspondent sldd, can not be directly loaded to the model as were before, when structure was loaded to workspace. Roughly speaking, model can not detect this structure to load the parameterization data from the corresponding fields.
My questions are as follows:
- Is there any way, how to use structures to parameterize the model in Matlab2016?
- Do I need to convert structure to some entity in order to use it further? If yes, how to do it and to which entity should be the conversion provided?
0 comentarios
Respuestas (2)
Rishabh Gupta
el 27 de Jul. de 2018
Hi Mykola,
Since you have stored the fields of structure as sldd, they may not be directly accessible using the dot operator as in structures.
Please refer to following links to see how to extract data from SLDD:
Also make sure the structure is on path or is accessible to the code/model.
0 comentarios
Mykola Raievskyi
el 27 de Jul. de 2018
Editada: Mykola Raievskyi
el 27 de Jul. de 2018
0 comentarios
Ver también
Categorías
Más información sobre Programmatic Model Editing en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!