フィルターのクリア

dde23 use in MATLAB coder for MEX files

1 回表示 (過去 30 日間)
Adam Handley
Adam Handley 2021 年 11 月 15 日
回答済み: Ryan Livingston 2021 年 11 月 24 日
I have function code that calls the dde23 function but I am trying to convert the function into an MEX file using MATLAB Coder.
I get an error that the dde functions are not supported by MATLAB Coder. Does anyone know a work around for this?
TIA

採用された回答

Ryan Livingston
Ryan Livingston 2021 年 11 月 24 日
Unfortunately the dde functions do not support code generation. I've made an internal note of your request so we can consider this for the future. One option is to declare dde23 as an extrinsic function using coder.extrinsic. That will allow you to use it in MEX by having the MEX call back into MATLAB to run it. If the desire is to accelerate your code and dde23 is a hot spot, then the coder.extrinsic strategy likely won't help.
function y = example(x)
coder.extrinsic('dde23');
y = preAssignOutput;
y = dde23(x,..);
end

その他の回答 (0 件)

カテゴリ

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

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by