Code Generation Support for Calling Executable?

Is there a way that I can call an executable that is supported for code generation? I know about the shell escape (!) and system.m, but neither of these are supported for code generation.

 採用された回答

Matthew DiBello
Matthew DiBello 2023 年 2 月 3 日

0 投票

Hi Michael,
You can write a small C wrapper function which calls the executable, and then call that C function using coder.ceval.
Best,
Matthew

1 件のコメント

Michael
Michael 2023 年 2 月 6 日
Oh, that's a great idea! Thanks.

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeMATLAB Coder についてさらに検索

製品

リリース

R2022b

質問済み:

2023 年 1 月 24 日

コメント済み:

2023 年 2 月 6 日

Community Treasure Hunt

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

Start Hunting!

Translated by