필터 지우기
필터 지우기

The 'matlab.mixin' class does not support code generation.

조회 수: 3 (최근 30일)
Mike Leijten
Mike Leijten 2021년 10월 4일
답변: Walter Roberson 2021년 10월 4일
Hi everyone,
I have a code that runs perfectly fine in matlab. But when I try to run the same function from a Simulink function block, I get the following error:
The 'matlab.mixin' class does not support code generation.
What is going on here and is there perhaps any way around this?
Thanks very much in advance for your time ans answer.

채택된 답변

Walter Roberson
Walter Roberson 2021년 10월 4일
"You cannot generate code for classes that inherit from built-in MATLAB classes."
There is no work-around except to rewrite your code so that it does not inherit from matlab.mixin

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Simulink Functions에 대해 자세히 알아보기

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by