Why am I recieving a warning when importing a "struct" with a 2-D array using "Simulink.importExternalCTypes"?
显示 更早的评论
I am attempting to import a header file into Simulink in MATLAB R2022a using the following command:
>> Simulink.importExternalCTypes("test.h")
The header file defines a struct in C code, which contains a 2-D array member, as shown:
typedef struct myStruct{
float y;
float x[2][2];
}myStruct;
However, I receive the following warning:
Warning: 'myStruct' from file 'C:<currentDirectory>\test.h' is not imported. It has a field whose type is unsupported in Simulink.
Why is the import not working as expected?
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Structures 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!