Interact with an external c++ application in MATLAB
Show older comments
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!
Accepted Answer
More Answers (0)
Categories
Find more on Write C Functions Callable from MATLAB (MEX Files) in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!