On 25/03/2013 16:57, Rik wrote:
Matlab describes evalc as
"T = evalc(S) is the same as eval(S) except that anything that would
normally be written to the command window, except for error messages, is
captured and returned in the character array T (lines in T are
separated by
\n characters). "
So I think an m-file could be written that wraps around eval and
temporarily redirects stdout to a file which could then be read into
[T].
How would you do that in an m-file ? Using PAGER() ?
How about hacking octave_pager_stream directly (changing its rdbuf) ?