Using Simulink.importExternalCTypes
    조회 수: 7 (최근 30일)
  
       이전 댓글 표시
    
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?
댓글 수: 0
답변 (1개)
  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.
댓글 수: 0
참고 항목
카테고리
				Help Center 및 File Exchange에서 Structures에 대해 자세히 알아보기
			
	제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!