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!