Files used in webinar MATLAB for C/C++ Programmers on May 16, 2013. This webinar can be viewed at http://www.mathworks.com/videos/matlab-for-cc-programmers-81699.html
Specific topics include:
- Introduction to the MATLAB environment focusing on algorithm development
- Exchanging data between your running C/C++ application and MATLAB using the MATLAB Engine
- Issuing MATLAB commands from your running C/C++ application to debug your code, test your algorithms, and visualize your data
- Building shared libraries from MATLAB functions for deployment with your application
- Building complete and stand-alone executables from MATLAB functions
Adam Filion (2021). MATLAB for C/C++ Programmers (https://www.mathworks.com/matlabcentral/fileexchange/41989-matlab-for-c-c-programmers), MATLAB Central File Exchange. Retrieved .
I want to use Matlab linear solver x= A\B in my MSVC C++ code. I tried doing this creating static library through Matlab coder but didn't succeed. Matrix A is 39-by-39 while B is 39-by-1.
Can some one write an example of doing this?
Thanks. Another way of doing this is, if you can make engdemo.c or engdemo.cpp work, chances are people can then resolve more issues by themselves in trying to work with your example code which in turn will save you lots of time explaining them in the forum as well.
I appreciate your frustration, I know the setup is not simple. Unfortunately there are restrictions in place from our legal department on what I can and cannot post (i.e. that's why all the lib files are missing). The best advice I can give is to follow the instructions in the README file closely, NONE of the visual studio portion of the demo will work without doing so. If any of the instructions are unclear, please let me know in this forum, updating the instructions is the only thing I can do to make this easier.
To specifically address your first question, the README file will tell you that you need to build the laneMarkingAlgorithmWithVisualization.h and .lib files in MATLAB and then add them to the VS project. I had to add this extra step because I am not allow to post compiled files such as .lib.
Adam, where is the laneMarkingAlgorithmWithVisualization.h and .lib in the zip ? And where is the \laneMarkingWithVisualization\distrib\ folder in the zip ? The reason why most people cannot run your exmaple files correctly is because it's too complicated and that's why things are misging here and there. Can you plz just provide a workable example for engdemo.c or engdemo.cpp ? I don't believe many people can even compile either one correctly and see results in Matlab, let alone your example files. Thanks.
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!