interfacing of c program written in codeblocks to matlab

please any body provide me the way to interface c with the matlab programming...suppose i have written c program for addition of two numbers in codeblocks and user can give the inputs,but i want to give inputs through the matlab for that program and get the output back in matlab. . . please help... ....hoping for the reply soon...

2 件のコメント

satnam singh
satnam singh 2013 年 2 月 28 日
hey..anybody there ,,having the answer..??????? ..please explain...!!!!!
Ivan Calero
Ivan Calero 2018 年 11 月 29 日
hola, Encontraste la solucion.? porque tengo el mismo problema.!!

サインインしてコメントする。

 採用された回答

TAB
TAB 2013 年 2 月 28 日

1 投票

You can build your c code into mex file and call the mex file in matlab. Mex is the bridge between external programming languages like c/c++, fortran and matlab.
See

9 件のコメント

satnam singh
satnam singh 2013 年 3 月 5 日
sir, can you provide a smaller or step-by-step block diagram to interface matlab....because the link u provided contains a lot of stuff hwich is confusing me...so please explain me with small example or flowchart..
satnam singh
satnam singh 2013 年 3 月 5 日
any one there please explain....
satnam singh
satnam singh 2013 年 3 月 6 日
the c program u have provided,,i run this program in codeblocks...iz showing a lot of errors....so please provide me some basic program with some basic interfacing techniques step-by-step......i m just a student and a begginer so please provide me the the basic idea and explanation....
TAB
TAB 2013 年 3 月 6 日
What is codeblocks ? Are you using this in simulink ?
Walter Roberson
Walter Roberson 2013 年 3 月 6 日
My guess is the question has to do with aurdino.
satnam singh
satnam singh 2013 年 3 月 6 日
sir my deal is with matlab only....i just want one thing ...suppose a person writes a c program which can get inputs from the user(as suppose for addition of two number given by user)..the c program is written any different software other than the matlab......now i want to interface that c program with matlab..my aim is to provide inputs for that c program through matlab..and get the output.....just tell me where to copy that c program (written in any other software) in the matlab...and how to use that as the function to get inputs through matlab......... ..................please explain...hoping for the reply soon...
satnam singh
satnam singh 2013 年 3 月 6 日
please explain in simple steps..without providing big documents to read because they are confusing...
Walter Roberson
Walter Roberson 2013 年 3 月 6 日
Note: there is no point in asking volunteers to please answer, repeatedly, when the volunteers are sleeping. If you need faster response then you are getting, you should open a technical support case, or hire a consultant.

サインインしてコメントする。

その他の回答 (1 件)

Ivan Calero
Ivan Calero 2018 年 11 月 8 日
編集済み: Ivan Calero 2018 年 11 月 8 日

0 投票

hola tengo el mismo problema, quisiera saber si alguien obtuvo una solución, porque de igual forma necesito interactuar desde MATLAB al enviar un DATO a CODEBLOCK !!!

カテゴリ

ヘルプ センター および File ExchangeStartup and Shutdown についてさらに検索

質問済み:

2013 年 2 月 27 日

コメント済み:

2018 年 11 月 29 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by