Opening a C++ file by MATLAB

I want to open a C++ file (with .dev format) by MATLAB and then run that file and finally close it.
1- opening the C++ file by MATLAB( is there any command for opening this file outside of MATLAB?)
2- running it from MATLAB (is there any command for running this file outside of MATLAB?)
3- closing that file finally(is there any command to close this file outside of MATLAB?)
thanks

5 件のコメント

Geoff Hayes
Geoff Hayes 2015 年 3 月 1 日
Mohammad - please explain what you mean by your C++ file having a .dev format. Does this mean that you have compiled the C++ file and expect to be able to execute/run it?
mohammad
mohammad 2015 年 3 月 1 日
編集済み: mohammad 2015 年 3 月 1 日
Thanks for your comment Yes, I have compiled the C++ file. For example I have this file "file.dev" now i want to open it by a command in MATLAB for opening it outside of MATLAB in "DEV CPP software" and then execute it by a command in MATLAB.When this file executes, it makes a .txt file that i need this .txt in MATLAB
Geoff Hayes
Geoff Hayes 2015 年 3 月 1 日
How would you normally run the file.dev? What does the DEV CPP software do (please include a reference to it)?
mohammad
mohammad 2015 年 3 月 1 日
I use DEV CPP software for running the file. DEV CPP is a software for compiling and running C, C++ files. here some info is available: http://www.bloodshed.net/devcpp.html
Geoff Hayes
Geoff Hayes 2015 年 3 月 1 日
Why not just use MEX?

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

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeMATLAB Coder についてさらに検索

質問済み:

2015 年 3 月 1 日

コメント済み:

2015 年 3 月 1 日

Community Treasure Hunt

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

Start Hunting!

Translated by