Thread Subject: go back to a certain line within a script

Subject: go back to a certain line within a script

From: John

Date: 12 Mar, 2010 07:41:08

Message: 1 of 2

is it possible to make matlab return to the start of the script.

forexample my script will say please try again.

at this point i would like it to go back to a certain line where the user will input.


i tried to type run samemfile

but i get an error.


thankyou

Subject: go back to a certain line within a script

From: James Tursa

Date: 12 Mar, 2010 07:54:07

Message: 2 of 2

"John " <merehzezi@yahoo.com> wrote in message <hncr6k$78v$1@fred.mathworks.com>...
> is it possible to make matlab return to the start of the script.
>
> forexample my script will say please try again.
>
> at this point i would like it to go back to a certain line where the user will input.
>
>
> i tried to type run samemfile
>
> but i get an error.
>
>
> thankyou

You could put it inside a while loop and then break out when you are done.

James Tursa

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
loop script m file John 12 Mar, 2010 02:44:06
rssFeed for this Thread

Contact us at files@mathworks.com