On 03/24/2013 09:56 AM, address@hidden wrote:
From: Julien Bect <address@hidden>
Rik wrote that :
evalc (should be trivial to capture stdout)
Hello all,
I'm bringing this thread back to life because I just found it while looking
for information about the (apparently unimplemented) function evalc()...
In the quoted message, Rik says that an implementation of evalc() exists
somewhere on Octave-forge, but I don't see it here :
http://octave.sourceforge.net/functions_by_alpha.php?letter=E
Does anybody know where I can find it ?
3/25/13
Julien,
I don't think it exists yet. My comment (should be trivial to capture
stdout) indicates to me that I saw this as a very straightforward extension
of eval.
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].