My main goal is to integrate a code written in matlab(.m) with another c# application. I have considered 2 options:
- Use Matlab Builder NE
- Pros: Use to use!
- Cons: Need a license ($$) that I dont have so far. Needs MCR installed on end-user PC.
- Generate a standalone EXE file from a .m file
- Pros: Dont need anything to run.
- Cons: Hard for a newbie to use. Do not support all functions.
So far, I am trying to make a "proof of concept" of option 2), but with no success. I don't even know how to start my question; I will improve my question as soon I get to know the toolboxes a little bit more. Please inform me if the question does not meet the standards.
- What is the relationship between Matlab Coder, Real-Time Workshop(RTW) and RTW Embedded Coder? I am sure I have both RTW licences, but I am not sure I have "Matlab Coder"
- I am trying to use "emlc" command to generate the EXE. Is it the right command? I couldn't manage to get it working. I generated the C/C++ code correctly, but the EXE is not generated (I have already configured the MEX setup)
- The C/C++ code generated by "emlc" can be imported in Visual Studio in order to compile and build the EXE? Is it super-easy?
- "Emlc" belongs to which toolbox?
- What does %#codegen directive stands for?
- Imagine that I have 2 functions (functionA, functionB) in a .m file. Imagine also that I was able to generate the EXE. What would be be entry point for the exe? Would it be functionA or functionB? How can I define the data type?