octave-maintainers
[Top][All Lists]
Advanced

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

Re: evalc


From: Rik
Subject: Re: evalc
Date: Mon, 25 Mar 2013 08:57:55 -0700

On 03/24/2013 09:56 AM, address@hidden wrote:
> Message: 4
> Date: Sun, 24 Mar 2013 08:47:18 -0700 (PDT)
> From: Julien Bect <address@hidden>
> To: address@hidden
> Subject: Re: Core Functions and Matlab Compatibility
> Message-ID: <address@hidden>
> Content-Type: text/plain; charset=us-ascii
>
> Rik wrote that :
>
>> > The following have an implementation on Octave-Forge:
>> >
>> > gsvd
>> > condeig
>> > expint
>> > erfcinv
>> > ellipj
>> > ellipke
>> > funm
>> > 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].

--Rik



reply via email to

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