I think that there is not way to do it without updating the realese of Matlab
Nested Structures using Buses in Simulink
6 views (last 30 days)
Hello again, I have another question on the same line.
Finally I managed to create nested structures with buses, the point is that when I use the Simulink.Bus.createMATLABStruct('Buses') command the resultant structure is like this:
Nested_Struct: [1x1 struct]
Insted of what I want which is:
Nested_Struct: [1x20 struct]
I do not need to use the Simulink.Bus.createMATLABStruct for anything, it is just to illustrate. What I want to do is access through a S-function block or an emedded matlab block to differents indexes of the Nested_Struct, depending on certain conditions.
Note: The number of nested structures change dynamically.
By the way I'm using Matlab 2010a.
Thank you very much.
PS: Which will it be the best block or way to load data in the model for the second structure?.