call MEX-Funcion in a simulink userdefined block
3 ビュー (過去 30 日間)
古いコメントを表示
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.
0 件のコメント
回答 (1 件)
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 件のコメント
Kaustubha Govind
2013 年 5 月 6 日
omid: You need to create mxArray's for both - use mxCreateString for the first and mxCreateDoubleScalar for the second.
参考
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!