From: Joao on
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
"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
"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
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