0

I have made an algorithm using MATLAB to be run at backend. Also I have created one c++ GUI program to interact with my hardware. I want to integrate the both codes such that MATLAB code runs at backend. How can I do this such that my single application can execute on the devices without MATLAB installed?

0

2 Answers 2

1

You can use for that Matlab Compiler.

When used along with MATLAB Compiler SDK™, you can package MATLAB programs into software components for integration with other programming languages. Large-scale deployment to enterprise systems is supported through MATLAB Production Server™.

All applications created with MATLAB Compiler use the MATLAB Runtime, which enables royalty-free deployment to users who do not need MATLAB. You can package the runtime with the application, or have your users download it during installation.

More information is available here.

Matlab Compiler is not included in the base version of Matlab. You will need additional license to use it.

Sign up to request clarification or add additional context in comments.

4 Comments

thanks a lot, can you please tell me to do the same with java instead of c++
Your welcome. I have no experience with Java but example provided in documentation looks really simple
thanks for help, but even this did not work i did exact same work but in vain
What exactly didn't work? If you have some particular problem with the compiler maybe it's worth of formulating and posting another question?
0

For a use case like this I would use the Matlab Coder. Details can be found in Mathworks documentation.

From help:

Integrate your MATLAB algorithms as a compiled library component into other software such as a custom simulator

Accelerate computationally intensive portions of your MATLAB code by generating a MATLAB executable (MEX function) that calls the compiled C/C++ code

Prototype your MATLAB algorithms as a standalone executable on PCs and communicate the generated code as design specifications to your software engineers

Implement and verify your MATLAB algorithms on an embedded processor

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.