필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

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 (최근 30일)
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?

답변 (1개)

Sebastian Castro
Sebastian Castro 2015년 3월 15일
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

이 질문은 마감되었습니다.

제품

Community Treasure Hunt

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

Start Hunting!

Translated by