bugGNU Octave - Bugs: bug #47046, function handle str2func failed

 
 

bug #47046: function handle str2func failed

Submitted by:  None
Submitted on:  Tue 02 Feb 2016 06:56:25 PM UTC  
 
Category: Octave FunctionSeverity: 3 - Normal
Priority: 5 - NormalItem Group: WTF, Matlab?!?
Status: DuplicateAssigned to: None
Originator Name: MuzammilOriginator Email: -unavailable-
Open/Closed: ClosedRelease: 4.0.0
Operating System: Microsoft Windows

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Tue 02 Feb 2016 09:31:58 PM UTC, comment #2:

I think the post the OP is referring to is bug #45682, which has been fixed on the default branch. Closing as a duplicate of that bug.

Mike Miller <mtmiller>
Project Administrator
Tue 02 Feb 2016 07:14:08 PM UTC, comment #1:

I think that you might be using it wrong.
Here is an example:

function q=pig(x)
q=3*x^5 -100;
endfunction

str1="pig"

fh = str2func(str1)

ie; str has to be the name of a function , not the function.

HTH

Doug Stewart <dastew>
Tue 02 Feb 2016 06:56:25 PM UTC, original submission:

fh = str2func(str) brought about the results:
error: @7*x-13: no function and no method found
this bug is old since I have seen an august 2015 post about it. If there is any workaround, kindly let people know about it.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Digest:
   bug dependencies.

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by mtmiller (Posted a comment)
  • -unavailable- added by dastew (Posted a comment)
  • -unavailable- added by None (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 02 Feb 2016 09:31:58 PM UTCmtmillerStatusNone=>Duplicate
      Open/ClosedOpen=>Closed
      Dependencies-=>Depends on bugs #45682

    Back to the top


    Powered by Savane 3.1-cleanup1