Effacer les filtres
Effacer les filtres

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

3 vues (au cours des 30 derniers jours)
Mike Leijten
Mike Leijten le 4 Oct 2021
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.

Réponse acceptée

Walter Roberson
Walter Roberson le 4 Oct 2021
"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

Plus de réponses (0)

Catégories

En savoir plus sur Simulink Functions dans Help Center et File Exchange

Produits


Version

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by