[Top][All Lists]

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

[Octave-bug-tracker] [bug #52568] str2func erroneously checks for presen

From: Philip Nienhuis
Subject: [Octave-bug-tracker] [bug #52568] str2func erroneously checks for presence of file
Date: Fri, 1 Dec 2017 08:03:50 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0 SeaMonkey/2.48

Update of bug #52568 (project octave):

                  Status:                    None => Need Info              
                 Release:                   4.2.1 => dev                    
        Operating System:       Microsoft Windows => Any                    


Follow-up Comment #1:

The bug report title doesn't reflect what you write.
AFAIU you mention in the report that Octave's str2func() doesn't want to
accept just any string; the title suggests that the input string needs to be
the name of an .m file (in Octave's search path I assume).

Anyway, reading up on the Matlab docs, it looks like Matlab should behave the
same as Octave, insofar that Matlab also accepts names of variables in the
workspace; but once invoked the function handle referred to by str2func's
output errors out. Seems fair enough.

*  What exactly do you want to do with the result of your example,
'str2func(["test string"])' ?
*  What does Matlab do when you invoke the function handle from that example?

Apart from the fact that Octave's input check is a little more strict, it
seems to me that Octave's behavior is perfectly reasonable.

Release-> dev
Status-> need info


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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