フィルターのクリア

how do i run a mex code in a matlab function block

2 ビュー (過去 30 日間)
tochukwu victor
tochukwu victor 2015 年 9 月 25 日
コメント済み: Walter Roberson 2015 年 9 月 25 日
I have gotten a mex code but I don't know how to run this code on a MATLAB function block. The function block is part of a smulink model.

採用された回答

Walter Roberson
Walter Roberson 2015 年 9 月 25 日
If you have a compiled mex such as a .mex64 file, then those files are treated like built-in commands whose name is the name of the mex file. You can refer to them by name in your MATLAB Function Block, without needing anything special, just as if they were a Mathworks-provided routine.
  2 件のコメント
tochukwu victor
tochukwu victor 2015 年 9 月 25 日
Thanks but please how can I refer to it?
Walter Roberson
Walter Roberson 2015 年 9 月 25 日
By name. For example in your MATLAB function block
function result = func(u)
xyz = zeros(1,20);
xyz = NameOfMexFile(u);
result = sqrt(xyz);

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMATLAB Compiler についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by