I try to include 'mat.h' and 'matrix.h' in my generated code to acces to the functions (matOpen, matClose, MATFile, matGetVariable, ...) but I have this error:
...\matrix.h(300) : error C2371: 'mxArray' : redefinition; different basic types
...\simstruc.h(466) : see declaration of 'mxArray'
...\matrix.h(320) : error C2061: syntax error : identifier 'mxChar'
...\matrix.h(320) : error C2059: syntax error : ';'
...\matrix.h(633) : error C2143: syntax error : missing '{' before '*'