How can I use a user-defined MATLAB class as a Simulink signal datatype?

I would like to use a user-defined MATLAB class as the datatype for a Simulink signal. I have tried just entering the MATLAB class name into the "Data Type" field for the Simulink signal in the Model Explorer, but when starting the simulation I get the error "DataType 'ClassName' did not resolve to a valid data type".

답변 (1개)

Kaustubha Govind
Kaustubha Govind 2012년 8월 23일

0 개 추천

Please see this previously answered question on the only available mechanisms to create user-defined types in Simulink.

카테고리

도움말 센터File Exchange에서 Simulink에 대해 자세히 알아보기

질문:

2012년 8월 23일

Community Treasure Hunt

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

Start Hunting!

Translated by