Deploying a Shared Library
This example code contains the source code for an application that encrypts and decrypts messages using the Vigenere cipher. The application consists of a C++ main program and several MATLAB functions. The MATLAB functions must be built into a C++ shared library by the MATLAB Compiler (see the blog post for details).
To build and run this example, you'll need:
* MATLAB
* The MATLAB Compiler
* A C++ compiler (gcc or Visual Studio).
Cite As
Peter Webb (2024). Deploying a Shared Library (https://www.mathworks.com/matlabcentral/fileexchange/29443-deploying-a-shared-library), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- Application Deployment > MATLAB Compiler >
- Application Deployment > MATLAB Compiler SDK >
- MATLAB > External Language Interfaces > C++ with MATLAB > Call C++ from MATLAB >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.