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?

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)

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

Gefragt:

am 15 Mär. 2015

Geschlossen:

am 20 Aug. 2021

Community Treasure Hunt

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

Start Hunting!

Translated by