Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to restart Matlab using m code

372 views
Skip to first unread message

Sunil

unread,
Aug 20, 2010, 3:24:04 PM8/20/10
to
Hello All

I am looking for a script to restart Matlab and then run some m codes, then again restart.
There must be some easy way!!?, please share your thoughts

Thanks
Sunil

Walter Roberson

unread,
Aug 20, 2010, 3:27:51 PM8/20/10
to
On 10-08-20 02:24 PM, Sunil wrote:

> I am looking for a script to restart Matlab and then run some m codes,
> then again restart.
> There must be some easy way!!?, please share your thoughts

There is no way to do this from within Matlab, as Matlab does not offer a
method to restart Matlab.

The mechanisms to do something like this within Linux or Mac OS X are not
difficult.

I do not know quite how to do this within MS Windows. You could create a batch
job, and you could use the "-r" parameter to give the commands, but I do not
know how to get the Windows version of Matlab to operate in command-line mode
instead of windowed mode.

0 new messages