【发布时间】:2015-10-14 19:56:56
【问题描述】:
我的 Matlab GUI 文件中有以下代码
fileID = fopen('Game.txt','w');
fileattrib('Game.txt','+w');
fprintf(fileID,'%s %d ', 'You played level', handles.game_level);
fprintf(fileID,'%s %d %s', 'and it took you', UserTries, 'tries');
fileattrib('Game.txt','-w');
fclose(fileID);
我使用“deploytool”命令使用 Matlab 生成可执行文件。但是当我执行生成的可执行文件时,此过程不会生成 Game.txt 文件。有什么建议吗?
【问题讨论】:
标签: matlab compilation output executable