c++ and matlab functions equivalent
5 ビュー (過去 30 日間)
古いコメントを表示
correct me if i'm wrong.. as i just started learning how to use c++ and matlab, there is a matter i confused. i know that to call c++ code from matlab i have to replace my main() to mexFunction(). i've done that..here i want to know is that functions like mexprintf and soon must be used instead of cout(c++) in other source files? and is it the functions like mexprintf, mexCALLMATLAB etc only used inside mexFunction?
0 件のコメント
採用された回答
Friedrich
2013 年 6 月 11 日
Hi,
yes and yes. See at the bottom here for the cout question
and for the mexPrintf and mexCallMATLAB: Those functions are definied in the mex.h and work only inside a MEX file.
1 件のコメント
James Tursa
2013 年 6 月 11 日
編集済み: James Tursa
2013 年 6 月 11 日
@Khairul: To clarify, all of the mex API functions can be used anywhere in your mex code. You don't have to call them from inside the mexFunction itself.
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!