필터 지우기
필터 지우기

call MEX-Funcion in a simulink userdefined block

조회 수: 5 (최근 30일)
omid jab
omid jab 2013년 4월 27일
Hi, I have a MEX-function that have several inputs and 2 outputs. In addition I creat a simulink model whit several blocks. I need to call the MEX-Function whit these blocks in the model. how can I do it? It's important for me that arrive to minimum executing and calling time.

답변 (1개)

Kaustubha Govind
Kaustubha Govind 2013년 4월 30일
MEX-functions can essentially be called just like any other MATLAB function. Please see the available MATLAB Function blocks to find a Simulink block that can be used to execute a MATLAB function.
  댓글 수: 6
omid jab
omid jab 2013년 5월 6일
I studied all of them, but no understand how can creat a pointer such as prhs=['OpenWindow',0]".
Kaustubha Govind
Kaustubha Govind 2013년 5월 6일
omid: You need to create mxArray's for both - use mxCreateString for the first and mxCreateDoubleScalar for the second.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Simulink Functions에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by