From: Joao on 1 Jul 2010 19:38 Hi all, I'm writing a matlab script that creates a text file and then calls and external .bat file to execute this text file. In the end of the process, I need to press the enter key to continue. My problem is that all this is inside a very big for loop, and I would like to skip the click the enter button every interaction. Does anyone has an idea how can this be programmed in matlab? Thanks. Cheers João
From: Frédéric Bergeron on 1 Jul 2010 19:56 "Joao" <janeiro.jm(a)gmail.com> wrote in message <i0j8ss$719 > My problem is that all this is inside a very big for loop, and I would like to skip the click the enter button every interaction. Does anyone has an idea how can this be programmed in matlab? > Hey, Can you make an if statement in your for loop that apply just to the iteration where you want the enter key be active? If you define well the logical expression of your if, the big for loop will just skip the enter command on every iteration except the one you want to. That's a little simple, but it's an idea :P
From: us on 1 Jul 2010 20:02 "Joao" <janeiro.jm(a)gmail.com> wrote in message <i0j8ss$719$1(a)fred.mathworks.com>... > Hi all, > > I'm writing a matlab script that creates a text file and then calls and external .bat file to execute this text file. In the end of the process, I need to press the enter key to continue. > My problem is that all this is inside a very big for loop, and I would like to skip the click the enter button every interaction. Does anyone has an idea how can this be programmed in matlab? > > Thanks. > > Cheers > > João well... it all depends on - the command(s) in your text file... - the content of your batch file... you must be more specific... us
From: Walter Roberson on 4 Jul 2010 13:35 Joao wrote: > I'm writing a matlab script that creates a text file and then calls and > external .bat file to execute this text file. In the end of the process, > I need to press the enter key to continue. > My problem is that all this is inside a very big for loop, and I would > like to skip the click the enter button every interaction. Does anyone > has an idea how can this be programmed in matlab? Java robot class
|
Pages: 1 Prev: loadlibrary - function not found Next: How to avoid nested for loops |