Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

To resolve issues starting MATLAB on Mac OS X 10.10 (Yosemite) visit: http://www.mathworks.com/matlabcentral/answers/159016

cmath library for interfacing matlab with visual c

Asked by Muhammad Amir on 19 Sep 2013

I am trying to interface matlab 2012 with visual c++ 6.0. I cant find matlab.h file. I have search online as well but unable to find this file. Where can i find files in MATLAB C/C++ Math Library. Or from where can i install MATLAB C/C++ Math Library. Furthermore any help regarding interfacing matlab with vc is appreciated.

Actually, I have data acquisition card that acquires samples through vc code. I want to do development in matlab and wish to have two way communication between matlab and vc. How can i achieve this.

0 Comments

Muhammad Amir

1 Answer

Answer by Kaustubha Govind on 19 Sep 2013

Please see this previous discussion: About Matlab C++ Math Library

2 Comments

Muhammad Amir on 20 Sep 2013

Thank you for reply. Actually, I want two way communication between matlab and VC. I have used matlab engine interface (invoking matlab engine from VC) and its working fine. However, I am unable to transfer data from matlab to VC. Thats why I need matlab.h file. Any help in this regard will be useful.

Kaustubha Govind on 20 Sep 2013

You can use engGetVariable to get a variable from the MATLAB workspace into your C application.

Kaustubha Govind

Contact us