Info
此问题已关闭。 请重新打开它进行编辑或回答。
Problem with .executable program
1 次查看(过去 30 天)
显示 更早的评论
Hello,
I have a problem with a code. I create an .exe file, that cames from a matlab code.
I used the command:
clc
clear
mcc -m file.m
I have to mention that my matlab code use a file "data.txt" that takes one number in order to tun a subroutine in my matlab code.
I realised that I have to execute again and again my matlab code in order to execute the program , when I want to change the content of "data.txt".
My full code of .m file is:
clc
clear
data=regexp(fileread('data.txt'), '\r?\n', 'split') .';
data_new=data{1}
calculations.m
("calculations.m" is a subroutine I use)
Does anybody knows how can I avoid again and again execution, and to make automatically the changes I want?
4 个评论
Walter Roberson
2020-5-8
How are you doing the updating of input.txt ?
You say you want to rewrite "data.txt" but your steps show that second.exe needs input.txt and I do not see anywhere in your steps that needs a new version of data.txt .
回答(0 个)
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!