[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.
So:
* 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.
OS->Any
Release-> dev
Status-> need info
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?52568>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #52568] str2func erroneously checks for presence of file, Johannes Pfeifer, 2017/12/01
- [Octave-bug-tracker] [bug #52568] str2func erroneously checks for presence of file,
Philip Nienhuis <=
- [Octave-bug-tracker] [bug #52568] str2func erroneously checks for presence of file, Johannes Pfeifer, 2017/12/01
- [Octave-bug-tracker] [bug #52568] str2func erroneously checks for presence of file, Markus Mützel, 2017/12/01
- [Octave-bug-tracker] [bug #52568] str2func can't create a "lazy" handle to function which does not exist when str2func is executed, Rik, 2017/12/01
- [Octave-bug-tracker] [bug #52568] str2func can't create a "lazy" handle to function which does not exist when str2func is executed, Philip Nienhuis, 2017/12/02
- [Octave-bug-tracker] [bug #52568] str2func can't create a "lazy" handle to function which does not exist when str2func is executed, Johannes Pfeifer, 2017/12/02
- [Octave-bug-tracker] [bug #52568] str2func can't create a "lazy" handle to function which does not exist when str2func is executed, Philip Nienhuis, 2017/12/03
- [Octave-bug-tracker] [bug #52568] str2func can't create a "lazy" handle to function which does not exist when str2func is executed, Guillaume, 2017/12/04