Info

This question is closed. Reopen it to edit or answer.

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?

1 view (last 30 days)
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?

Answers (1)

Sebastian Castro
Sebastian Castro on 15 Mar 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

Products

Community Treasure Hunt

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

Start Hunting!