How to extract processed data from a .exe file created using matlab into a more accesible format (e.g.- .txt, .xls, etc.)

5 ビュー (過去 30 日間)
I have a matlab code for simulating pulse propogation in an optical fibre. I made a .exe file using the mcc command and deploy tool in matlab for that code. Now i want to get the result of the simulation in the form of numbers so that one can do his/her own analysis using those numbers and does not need matlab for it.The idea is to be able to run the .exe file and extract the results in a generic format on a computer without matlab. Can this be done? Please help! Thanks.

採用された回答

Sid
Sid 2015 年 7 月 1 日
編集済み: Sid 2015 年 7 月 1 日
There are a couple of different options like writetable ( doc writetable ) and fprintf ( doc fprintf .)
writetable is a very easy option to do a lot of things as long as you are able to have the data in the table format, while fprintf will give more control (and perhaps more suitable for large datasets as discussed here.)
xlswrite ( doc xlswrite ), dlmwrite ( doc dlmwrite ), csvwrite ( doc csvwrite ) are also other options.
Can you add one of these commands and output the values to a file you like? Important things to consider might be how big the files are (check the link for discussion from Jan Simon,) and what kind of data (mixed data - numbers and strings vs. numbers only vs. strings only) you wish to output.
HTH.
  1 件のコメント
Amol  Deo
Amol Deo 2015 年 7 月 2 日
Thankyou for the help! I will try writetable and/or fprint and run the program again to see if it works. Thanks again!

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeData Import and Export についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by