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 件のコメント
回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!