Info

この質問は閉じられています。 編集または回答するには再度開いてください。

problem in generating exe file while using mcc

1 回表示 (過去 30 日間)
srinu siliveru
srinu siliveru 2019 年 3 月 15 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
Hi
i wrote a simple code where it reads two value from a sheet of excel and writes into the same file
then i created exe file by using mcc
then next time when i change values in excel file and i run the exe again it is writing the previos values.
please help me
thanks in advance

回答 (1 件)

Kojiro Saito
Kojiro Saito 2019 年 3 月 21 日
It might be because the excel file is included in compiled standalone exe file.
To avoid this,
  1. Move the excel file to a different folder (for example, desktop folder) where is not in MATLAB's path.
  2. Compile the m file and an exe will be created.
  3. Move the excel file to the same folder of the exe.
  1 件のコメント
srinu siliveru
srinu siliveru 2019 年 3 月 21 日
i'll give a shot
thanks
srinu

製品


リリース

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by