Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hello, I have to do a projec

Status
Not open for further replies.

kidaan

Electrical
Nov 25, 2002
1
Hello,

I have to do a project in which i have i to write two programs.One in Vc++6.0 and the other matlab 6.1 (any for that matter)
at the same time i dont wana use the mex file as it is very confusing for me.I wanna do them separately. But i would still like to call matlab into C++ Or share the results and functions. Someone told me that both the languages can be linked up by using Visual basic.Im not sure about it.If any has any idea of linking them up minus mex files plzz let me know.Thnxx
 
Replies continue below

Recommended for you

Hi,
Compile your C++ program as an .exe file. You can than call it from within Matlab (may be you need the (!) sign in front of the file name). To path data, write it to a file and read it, the fprintf function is similar in C and Matlab (if not identical).
This will work fine unless you have to loop over read/write process.


Joe
BSTeX- Equation viewer for Matlab
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor