2

I have been given some matlab code compiled using the .net compiler.

I can run it just fine from a console application, but if there are some warnings, they are printed in the command window.

I would like to be able to either hide them, or print them somewhere else.

How can I redirect that standard output for a portion of code (not a separate process)?

SRKX
  • 1,806
  • 1
  • 21
  • 42

1 Answers1

1

You can redirect console output to any stream. Have a look at this: Is it possible to intercept Console output?

Community
  • 1
  • 1
Teoman Soygul
  • 25,584
  • 6
  • 69
  • 80