Problem with Matlab Compiler and .txt files

조회 수: 15 (최근 30일)
Maxime
Maxime 2014년 3월 12일
답변: Kaustubha Govind 2014년 3월 13일
Hi all,
I try to create a standalone application using Matlab scripts. My application has to modify some .txt files during the process.
I succeed in creating my application but the problem is that in my .exe application, the last .txt was registered and my orders via the graphical user interface can't change the .txt file. As a consequence, my application is not effective because she keeps just one solution whereas the application is written to solve the problem decided in the graphical user interface.
Do you know why my .exe application created with Matlab Compiler doens't modify the .txt files like in my Matlab?
PS : i add those .txt files in folders to add whilde building the application.
Here my code to save in .txt files:
save fich_poids.txt B -ascii;
Thanks.
Maxime.

답변 (1개)

Kaustubha Govind
Kaustubha Govind 2014년 3월 13일
Could you try specifying the full path to fich_poids.txt and see if that helps? You can also read Path Management in Deployed Applications for more tips.

카테고리

Help CenterFile Exchange에서 MATLAB Compiler에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by