Interact with an external c++ application in MATLAB
Mostrar comentarios más antiguos
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!
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Write C Functions Callable from MATLAB (MEX Files) en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!