File Exchange

image thumbnail

MATLAB for C/C++ Programmers

version 1.1.0.1 (7.86 MB) by Adam Filion
Files used in webinar MATLAB for C/C++ Programmers.

7 Downloads

Updated 01 Sep 2016

View License

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

Comments and Ratings (5)

Hi,

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?

R

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.

Adam Filion

Hi R,

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.

Thanks, Adam

R

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.

Updates

1.1.0.1

Updated license

1.1.0.0

Updated files.

MATLAB Release Compatibility
Created with R2013a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Discover Live Editor

Create scripts with code, output, and formatted text in a single executable document.


Learn About Live Editor

MATLAB_C_DemoFiles_makezip/1-MATLAB_Intro_Lanes/

MATLAB_C_DemoFiles_makezip/2-SystemObjectIntro/

MATLAB_C_DemoFiles_makezip/3-LanesOnVideo/

MATLAB_C_DemoFiles_makezip/4-VerifyLanesOnVideo/

MATLAB_C_DemoFiles_makezip/5-CodeGenIntro/

MATLAB_C_DemoFiles_makezip/6-LanesCodeGen/

MATLAB_C_DemoFiles_makezip/7-LanesCompilerLibrary/

MATLAB_C_DemoFiles_makezip/LaneMarkingVSProject/Utilities/

MATLAB_C_DemoFiles_makezip/LaneMarkingVSProject/Utilities/AVIReader/