Interact with an external c++ application in MATLAB
Afficher commentaires plus anciens
I have a MATLAB script that
- Generates a large dataset and saves the dataset to the disk,
- Calls an external C++ application using "system(command)" to process the dataset,
- And imports the output generated by the external application from disk.
The bottleneck in this approach is the data transfer time needed to save/load the dataset to/from the disk. Therefore I am thinking about skipping these steps and import/export that data directly into/from the C++ application. I wonder what the easiest way is to achieve this. My understanding is that I need to create a MEX function as the interface to my C++ application. Can someone please help? Thanks!
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Write C Functions Callable from MATLAB (MEX Files) dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!