how to change struct name in auto code generation

3 views (last 30 days)
i have a struct define in my work space
ex:
data =struct
data.in1 = 1;
data.in2 = 2;
data.in3 = 3;
as expected it will create a struct called data. i was able to import it to my simulink file and run and used the data but when i generate the code and check the code. this is what it generate for the struct name and create data type called data under a weird name like this
typedef struct {
real32_T in1;
real32_T in2;
real32_T in3;
}struct_ixqQNRfxxSL6hiWfBBiEsH; <---- how do i change that weird name.
and it will create an instance of the struct called
extern struct_ixqQNRfxxSL6hiWfBBiEsH data;
thanks

Answers (0)

Categories

Find more on Structures in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!