필터 지우기
필터 지우기

quadprog in a Matlab Simulnk Level 2 S function block

조회 수: 3 (최근 30일)
Aakar
Aakar 2014년 4월 14일
I have actually never used User Defined Blocks in Simulink, but for some time I have been trying to put my controller block which uses the quadprog() into a Simulink S function block .
I managed to use "coder.extrinsic()" function for incorporating quadprog() in a "Matlab Function Block" . But the same does not work in the a S function block .
Can anyone help me with this? Does the S Function block allow us to call another function in form of a code? If yes then how does that work?
My main objective is to convert a code that I wrote in Matlab to a Simulink S function block.
I am using Matlab R2013a .

답변 (0개)

카테고리

Help CenterFile Exchange에서 General Applications에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by