Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Interfacing between MATLAB and C++

Interfacing between MATLAB and C++

Scheduled Pinned Locked Moved C / C++ / MFC
c++help
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • 1 Offline
    1 Offline
    1vick
    wrote on last edited by
    #1

    HI everyone, I was trying to make a tool using visual C++ which uses my self made MATLAB codes and I am supposed to access them in my C++ project and derive the corresponding results. Alternatively, I can say that I read the inputs in my C++ and have to compute the results using the MATLAB codes. For all these I am supposed to make shared libraries. But when I used mcc command (thx to code project only), my machine's MATLAB said no such command exists and even the DOS prompt failed to recognise. Can anyone help me out in this or suggest me an alternative. Looking forward to guidance from someone. 1vick:)

    L T 2 Replies Last reply
    0
    • 1 1vick

      HI everyone, I was trying to make a tool using visual C++ which uses my self made MATLAB codes and I am supposed to access them in my C++ project and derive the corresponding results. Alternatively, I can say that I read the inputs in my C++ and have to compute the results using the MATLAB codes. For all these I am supposed to make shared libraries. But when I used mcc command (thx to code project only), my machine's MATLAB said no such command exists and even the DOS prompt failed to recognise. Can anyone help me out in this or suggest me an alternative. Looking forward to guidance from someone. 1vick:)

      L Offline
      L Offline
      led mike
      wrote on last edited by
      #2

      That question is asked a couple times a month. Search the forum, 'Search Comments', for MATLAB and read some of the past discussions.

      led mike

      1 Reply Last reply
      0
      • 1 1vick

        HI everyone, I was trying to make a tool using visual C++ which uses my self made MATLAB codes and I am supposed to access them in my C++ project and derive the corresponding results. Alternatively, I can say that I read the inputs in my C++ and have to compute the results using the MATLAB codes. For all these I am supposed to make shared libraries. But when I used mcc command (thx to code project only), my machine's MATLAB said no such command exists and even the DOS prompt failed to recognise. Can anyone help me out in this or suggest me an alternative. Looking forward to guidance from someone. 1vick:)

        T Offline
        T Offline
        Tim Paaschen
        wrote on last edited by
        #3

        This article[^] should give you an introduction how to make a DLL from a MatLab code and how to use it from C/C++. However, to build the DLL (or an EXE) you will need the MatLab Compiler (mcc). If the mcc comand fails on your machine, you most propably don't have the MatLab Compiler installed. If I remember correctly, it is not part of the basic installation but must be bought separately (as many other MatLab toolboxes, too).

        Regards, Tim

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups