フィルターのクリア

call MEX-Funcion in a simulink userdefined block

3 ビュー (過去 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 Center および File ExchangeWrite C Functions Callable from MATLAB (MEX Files) についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by