Obtaining each value of an struct array with fields in Simulink

1 view (last 30 days)
In simulink I have a struct array like called key_frame:
12×1 struct array with fields:
frame_value
interp_function
RGB
This struct is stored as a Parameter. I have access to it in my model by using a constant defined with the Constant value expression:
[MyParamParam.key_frame.frame_value]
This gives as a result obtain the value of each of the frame_values
1×12 uint8 row vector
5 6 7 0 4 10 11 12 8 200 0 0
This approach is not valid when code generation is needed as "[X]" is considered a category 4 operator and therefore it is not supported for code generation.
Is there a simple way to obtain each one of the frame_value in a vector in simulink?

Answers (0)

Categories

Find more on Simulink in Help Center and File Exchange

Products


Release

R2017a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!