Filter löschen
Filter löschen

Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

i have a power system modeled in simulink. i want to use the power_analyze function in simulink. Is there any way that i can use this function?

2 Ansichten (letzte 30 Tage)
I have tried using the MATLAB function tool but it gives me an error stating 'The function 'power_analyze' is not supported for standalone code generation.' How do i use this function in simulink?

Antworten (1)

Sebastian Castro
Sebastian Castro am 15 Mär. 2015
You can use coder.extrinsic to declare power_analyze as an extrinsic function.
This will enable you to call power_analyze from the model while you simulate it inside MATLAB, so as long as you're not generating code from the model you will be fine.
This page has more information on using coder.extrinsic to call MATLAB function not supported for code generation.
- Sebastian

Diese Frage ist geschlossen.

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by