How to call a program in C from Matlab
古いコメントを表示
I used to call a program in C to change parameters in a camera, since the product came with examples in this language.But for sake of automation it would be more efficient do it all from a main program in Matlab.-The key is how to pass the values to the functions and make that the program in c read the values from the functions in my "m" file.Command System works for me, but if there is another way to dothis...I appreciate a clue
回答 (1 件)
Kaustubha Govind
2012 年 3 月 26 日
1 投票
4 件のコメント
Warren
2012 年 3 月 26 日
Geoff
2012 年 3 月 27 日
Wrapping your camera control code with MEX should not be a problem if you are familiar with C. You simply create a C source file with the MEX entry function, #include your camera-control stuff in that file, and translate the supplied MatLab parameters into their C equivalent. There is a lot of MEX example code on the web that gives you the basic MatLab API calls. From there, it's just ordinary C.
Jan
2012 年 3 月 27 日
@Warren: The Mex-gateway is the best solution. If this interface is "overwhelming" for you, this forum is a good location to post your trials and ask specific questions about the mex<> and mx<> commands.
Kaustubha Govind
2012 年 3 月 27 日
I agree with Geoff and Jan!
カテゴリ
ヘルプ センター および File Exchange で Deep Learning Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!