Obtaining each value of an struct array with fields in Simulink

조회 수: 1 (최근 30일)
ricard molins
ricard molins 2018년 12월 17일
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