Hi all,
Z (see code below) is a batch file to be executed using 'dos'. The challenge however is that V requires 'x.log' which is an output files after completely executing the batch file. What I observe is error message saying that the output file do not exist; apparently because the 'x.log' is yet to be generated by the batch file. Please How can I make matlab hold on until after the batch file has been completed so that the x.log file can be available as input to V?
z = dos('x.bat'); v = fileread('x.log')
Thank you in advance.
OlFat
Best Answer