How to do matlab 2012b and VC 2012 hybrid programming

Updated on technology 2024-04-17
10 answers
  1. Anonymous users2024-02-07

    The reason for this problem is often that the version of MATLAB is lower than the version of Visual Studio, so he can't find VS. There are three ways to fix it

    1.Uninstall VS, install an earlier version.

    2.Uninstall MATLAB and install 2013a.

    3.I've seen a patch before.,You go to it.,But there's not much hope.,I remember his solution to the lower version of vs and matlab.,I don't know the compatibility with you.。

    If you don't understand something, you can continue to ask questions, and if it helps, hope.

  2. Anonymous users2024-02-06

    Because Visual Studio 2012 was released a bit late, MATLAB 2012B was not able to add support for VS2012 in the product upgrade phase, but fortunately MATLAB 2013A has been released today, this version should be compatible with Visual Studio 2012, and it is estimated that the problem will be solved in a while.

  3. Anonymous users2024-02-05

    Modify the configuration file of matlab, it can be solved, mine is win8 64 + visual 2012 + matlab 2012b, perfect solution.

  4. Anonymous users2024-02-04

    Are you from Southern Medical University?

  5. Anonymous users2024-02-03

    It's basically in C, but the former doesn't contain all the features of C, but there are many modules.

  6. Anonymous users2024-02-02

    Title: Proficient in MATLAB and C C++ hybrid programming.

    Publisher: Beijing University of Aeronautics and Astronautics Press.

    The book is now in its second edition, and even from this point of view, it is clear how seriously the author has written it. The first edition of the book was published in 2005 and is one of the earliest books in China to introduce MATLAB and C++ hybrid programming.

    If you're going to buy it, buy the second edition, as the version of MATLAB on which the different versions are based is also different.

  7. Anonymous users2024-02-01

    Didn't I get an error when compiling? put"e:\"Changed to"e:\\"Try it.

    e.g. engevalstring(m ep,"sympin=dlmread(e:\',',');");

    Changed to engevalstring (m ep,"sympin=dlmread(e:\\',',');");

  8. Anonymous users2024-01-31

    nargout is the output parameter, change:

    isok=mlfsignal(0,&y);For:

    isok=mlfsignal(1,&y);

    Give it a try.

  9. Anonymous users2024-01-30

    MATLAB Engine refers to a set of interface functions provided by MATLAB, which supports C language, MATLAB Engine adopts the C S (client server) mode, MATLAB is the background server, and the C program is the foreground client, which communicates with the server through the dynamic control of Windows, transmits commands and data information to MATLAB Engine, and receives data information from MATLAB Engine. Users can invoke these interface sidegate functions in the front-end car application to control MATLAB Engine. This method can use almost all the functions of MATLAB, but it needs to be rented and installed on the machine, and the execution efficiency is low, so it is not feasible in software development without using this method in practical applications, and I think it is suitable for personal use or demonstration, so I do not plan to introduce it.

  10. Anonymous users2024-01-29

    There are several ways to combine MATLAB with Visual C++, but they vary in their usefulness and scope. At present, there are three main ways.

    1.Through the MATLAB engine

    It adopts the computing mode of client service, and combines it with MATLAB through the ActiveX channel of Windows. The MATLAB engine provides a set of MATLAB API functions using client and server calculations, and users can call them regardless of how the MATLAB engine is implemented. It is through these API functions that the transfer functions between application processes are realized, thus enabling hybrid programming of MATLAB and VC.

    In specific applications, the program framework is often designed in the VC, and the program of the C language or C++ language of the VC is used as the front-end client, which transmits commands and data information to the MATLAB engine, and establishes a connection with the MATLAB server in the background by calling the MATLAB engine to achieve dynamic communication. This processing method does not require the whole MATLAB to be linked, only the necessary MATLAB engine library needs to be embedded, which saves a lot of system resources, makes the overall performance of the application better, and the processing efficiency is higher, but this hybrid programming method requires MATLAB to run in the background in a timely manner and cannot be separated from the MATLAB environment, otherwise it affects the generality of the program, so this method is rarely adopted in the actual development process.

    2.Hybrid programming via DLLs.

    DLL is an acronym for Dynamic Link Library, which is an executable binary. Putting a lot of common functionality in a DLL that can be called by multiple applications, rather than each application having to add a copy of the target in the library when it connects. With the built-in Compiler compiler in MATLAB, you can compile M function files written in MATLAB into a dynamic link library (DL1).

    Or through the component functions provided by MATLAB, use the VC+10 wizard to automatically generate a dynamic link library of M files. Call the encapsulated function in the VC program to realize the use of numerical algorithms. This method only needs to include the generated dynamic library in the development and release, which can make the program separate from MATLAB, reduce the amount of external storage space of the file as a whole, and realize the best sharing.

    3.Hybrid programming using COM technology.

    COM technology is a widely used, convenient and flexible method, which uses the Deploy Tool tool provided by MATLAB to realize the hybrid programming of MATLAB and C C++. com provides a way for software developers to share binaries that are not limited to a programming language.

Related questions
13 answers2024-04-17

Let's use the numerical solution.

function hahaha >>>More

24 answers2024-04-17

I know a Guizhou one.,GM's name is in love with Tian.,Everyone must remember to send him an email.,Point to send 50w and he will automatically return 100w.,This is true.。。。 Definitely I've tried, I hope everyone tops...

6 answers2024-04-17

Subtract the two formulas.

a^5+b^5)-(a^3b^2+a^2b^3)a^3(a^2-b^2)+b^3(b^2-a^2)(a^3-b^3)(a^2-b^2) >>>More

10 answers2024-04-17

The poor God is coming.

Strong push, a bit similar to Gintama, the kind that is very funny. >>>More

4 answers2024-04-17

I'm 12 years old.

Language: Choose 10*1, all of which are for discrimination, word meaning and word order, ancient translation, and discourse. 200 words or so for 20 minutes. >>>More