Obtaining each value of an struct array with fields in Simulink

1 次查看(过去 30 天)
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?

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Simulink Coder 的更多信息

产品


版本

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by