Code Generation Support for Calling Executable?

2 vues (au cours des 30 derniers jours)
Michael
Michael le 24 Jan 2023
Commenté : Michael le 6 Fév 2023
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.

Réponse acceptée

Matthew DiBello
Matthew DiBello le 3 Fév 2023
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 commentaire
Michael
Michael le 6 Fév 2023
Oh, that's a great idea! Thanks.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur MATLAB Coder dans Help Center et File Exchange

Produits


Version

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by