C++ on MATLAB editor
古いコメントを表示
Hello All!
I'm looking for a way that: How can I write a C++ code on the MATLAB editor (instead I will write the script in m-file editor).
Is there anyone here who knows how can I do this?
Thanks Morris.
採用された回答
その他の回答 (1 件)
1 件のコメント
Walter Roberson
2014 年 3 月 15 日
You could consider calling "mex". Use the -c option if you want to compile an individual .cc or .C file to object code. mex normally creates what is really a DLL. If you want to build a complete .exe from the C++ you could system() the linking call after everything is compiled.
Or you could just system() the compilation call directly.
カテゴリ
ヘルプ センター および File Exchange で Call C++ from MATLAB についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!