フィルターのクリア

Using Simulink.i​mportExter​nalCTypes

17 ビュー (過去 30 日間)
rum
rum 2018 年 8 月 22 日
編集済み: Phani Teja 2019 年 7 月 11 日
My test.h file has following typedef
typedef struct ParameterLF_{
double x[10][10];
double y[10][10];
double z[10][10];
}ParameterLF;
when executing Simulink.importExternalCTypes('test.h');
I get following warning
Warning: 'ParameterLF' from file 'D:\Documents\WorkMatlab\test.h' is not imported. It has a field whose type is unsupported in Simulink.
How can I use types containing C arrays? Is there a workaround?

回答 (1 件)

Phani Teja
Phani Teja 2019 年 7 月 11 日
編集済み: Phani Teja 2019 年 7 月 11 日
This is the limiatation of 'Simulink.importExternalCTypes' to access the Structures that define a field whose value has more than one dimension.
Check limitations in below link
If a field value is a 1-D array, the function creates a bus element that represents a vector, not a matrix.

カテゴリ

Help Center および File ExchangeStructures についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by