Power overloading not supported for code generation
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Hello,
I am currently facing a problem when generating code including power operator overload.
This is the model block from which I try to generate code:
![testMatlabOverloadedPowerBlock.JPG](https://www.mathworks.com/matlabcentral/answers/uploaded_files/195867/testMatlabOverloadedPowerBlock.jpeg)
This is the very simple function I have defined for this MATLAB function:
![testMatlabOverloadedPowerFunction.JPG](https://www.mathworks.com/matlabcentral/answers/uploaded_files/195868/testMatlabOverloadedPowerFunction.jpeg)
When code genration is launched whitout power operator overloading, the build process is successful:
![testMatlabOverloadedPowerNormalBuildSuccess.JPG](https://www.mathworks.com/matlabcentral/answers/uploaded_files/195869/testMatlabOverloadedPowerNormalBuildSuccess.jpeg)
But when code generation is launched with power operator overloading, the build process fails with the following error message:
![testMatlabOverloadedPowerOverloadedBuildFailed.JPG](https://www.mathworks.com/matlabcentral/answers/uploaded_files/195870/testMatlabOverloadedPowerOverloadedBuildFailed.jpeg)
Can anyone explain me this phenomena please ?
Thank you for your attention.
0 comentarios
Respuestas (0)
Ver también
Categorías
Más información sobre Data Type Conversion en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!