Giter VIP home page Giter VIP logo

matlab_plot_with_cpp's Introduction

Use Matlab frunction to draw a plot using C++

This is a extremely easy demo showing you how to use Matlab function to draw a plot using c++. You will be able to visualize the plot without even opening Matlab window. It will just run in background and show you the plot you need.

====================

Motivation of doing this: I am using OpenCV and C++ for most of my vision projects because of running speed. However, I really want to utilize Matlab to visualize some of my results, e.g. the histogram of an image. This piece of code become very handy to use because I cam just call Matlab functions from within my C++ project.

====================

This project is build on the following platform:

  • Microsoft Visual Studio 2010
  • Matlab 2009b

====================

Configuration:

As an example, I am intalled a 32-bit Matlab under location 'C:\Program Files (x86)'.

In Visual Studio, go to Project > Configuration Properties > C/C++ > General Addtional Include Directories and add the following:

C:\Program Files (x86)\MATLAB\R2009a\extern\include

Go to Project > Configuration Properties > C/C++ > General > Addtional Library Directories and add the following:

C:\Program Files (x86)\MATLAB\R2009a\extern\lib\win32\microsoft

Go to Project > Configuration Properties > C/C++ > Input > Addtional Dependencies and add the following static libraries:

libmx.lib libmat.lib libeng.lib

matlab_plot_with_cpp's People

Watchers

 avatar  avatar

Forkers

dacho68

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.