.exe-file
古いコメントを表示
Hey.
Im running a file called serialWind3D.exe.
My plan is to use alot of input-parameters, which all will affect the output-file. I can run the .exe-file, but cannot make a code which will use 20 inputs, and then give me 20 output-files.
Can somebody help me?
2 件のコメント
John D'Errico
2017 年 3 月 11 日
Where did the compiled code come from? Google does not seem to find anything by that name.
Torbjørn Slinde
2017 年 3 月 13 日
回答 (1 件)
Guillaume
2017 年 3 月 13 日
I'm unclear on exactly what it is you're asking. Is it as simple as:
%create your input files any way you want. Name them inp_coor_1.dat, inp_coor_2.dat, etc.
numfiles = 15; %however many there are
for filenumber = 1:numfiles
status = system(sprintf('serialWind3D.exe -c configstation_j.dat -f stations -r 0.05 inp_coor_%d.dat', ...
filenumber), '-echo');
if status
fprintf('Wind3D returned an error for file number %s\n', filenumber);
end
end
According to your description the above would create inp_coor_1_out.dat, inp_coor_2_out.dat, etc.
カテゴリ
ヘルプ センター および File Exchange で Google についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!