Thread Subject:
how to redirect output on NT

Subject: how to redirect output on NT

From: peterfoelsche8599@my-deja.com

Date: 10 Mar, 2000 03:28:52

Message: 1 of 3

Does anybody know how I can use matlab in a batch file?
I guess this is not a problem with the UNIX version
but it definitely is with the windows version.


I wanted to pass some dynamically created .m file
and get the output into some other file.
Currently I can run .m files only interactively and the window does
not even hold the whole output -- since it is too much.

Anybody knows?

Thanks





Sent via Deja.com http://www.deja.com/
Before you buy.

Subject: how to redirect output on NT

From: ykondo@eco.toyama-u.ac.jp (Yasushi KONDOH)

Date: 10 Mar, 2000 05:46:53

Message: 2 of 3

Hi,

> Does anybody know how I can use matlab in a batch file?
> I guess this is not a problem with the UNIX version
> but it definitely is with the windows version.
>
> I wanted to pass some dynamically created .m file
> and get the output into some other file.
> Currently I can run .m files only interactively and the window does
> not even hold the whole output -- since it is too much.

See Solution Number 8965 on The MathWorks web site
  <http://www.mathworks.com/support/solutions/v5/8965.shtml>
I could find this page with the keyword "DOS" at the support page.
  <http://www.mathworks.com/support/>

Anyway, the solution
  DOS prompt> matlab -r mfile -logfile c:\temp\logfile
should help you.

Also, how about DIARY command? After typing
  >> diary mydiary.txt
all the inputs and outputs will be saved in the file mydiary.txt
at the current directory.

Subject: how to redirect output on NT

From: Herbert Ramoser

Date: 10 Mar, 2000 08:09:52

Message: 3 of 3

> Does anybody know how I can use matlab in a batch file?
> I guess this is not a problem with the UNIX version
> but it definitely is with the windows version.

Search for 'matlabshell' in the user contributed m-files section at the
Mathworks server. This program allows you to redirect input and output.

Hope this helps,

  Herbert

Tags for this Thread

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.

rssFeed for this Thread

Contact us