octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: evalc


From: Julien Bect
Subject: Re: evalc
Date: Thu, 28 Mar 2013 09:26:15 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130308 Thunderbird/17.0.4

On 27/03/2013 15:02, Julien Bect wrote:
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) ?

I have almost have a working implementation of evalc() now, following the second approach (hacking octave_pager_stream).

Since evalc() is an unimplemented Matlab function, I assume that this should be filed using a bug report ?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]