Calling C functions in MATLAB

11 ビュー (過去 30 日間)
Kit Mai
Kit Mai 2011 年 11 月 17 日
Hey,
I need to write a program in MATLAB which can call the C functions in a API ( http://spincore.com/support/spinapi/reference/production/2010-12-03/spinapi_8c.html)
The MATLAB program should be able to pass some parameters to the C functions specified in the API above. Basically, the MATLAB calls the C functions to interface a board and generate some arbitrary waveforms.
I have read something about the mex, mx or mxfunction stuff like that in order to call C in MATLAB, but since I am a new in MATLAB, I found it quite difficult and confused. Could you please give me some advices on how to start it?
Thanks.
Kit

回答 (1 件)

Kaustubha Govind
Kaustubha Govind 2011 年 11 月 17 日
This MEX-files Guide is a great place to get started. And here is the formal documentation. Note that the reference page for each MEX-API function also lists "Examples" at the bottom which takes you to example applications that provide more context for usage.

カテゴリ

Help Center および File ExchangeMATLAB Coder についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by