[Top][All Lists]

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


From: c.
Subject: str2func
Date: Wed, 13 Mar 2019 06:42:21 +0100


In the development branch str2func works with any string

>> f = str2func ("_5yVNhWVJWJn47RKnzxPsyb_")
f = @_5yVNhWVJWJn47RKnzxPsyb_

while in the stable release it returns an error if the string does not name an 
existing function

>> f = str2func ("_5yVNhWVJWJn47RKnzxPsyb_")
error: @_5yVNhWVJWJn47RKnzxPsyb_: no function and no method found

Is this intended, or is it a bug?

If it is intended, there are a few places where str2func is used to 
check whether a string is the name of a function (for example ode45, ode15i, 
which should be fixed.

If this is not intended I'll submit a bug


reply via email to

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