Structure arrays in Matlab2016
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(2 个)
Rishabh Gupta
2018-7-27
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 个评论
另请参阅
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!