bugGNU Octave - Bugs: bug #35121, cellfun() obsolete option 'uniform'

 
 

bug #35121: cellfun() obsolete option 'uniform'

Submitted by:  None
Submitted on:  Mon 19 Dec 2011 11:08:41 PM UTC  
 
Category: InterpreterSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Matlab Compatibility
Status: FixedAssigned to: None
Originator Name: J.J. GreenOriginator Email: -unavailable-
Open/Closed: ClosedRelease: dev
Operating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

(Jump to the original submission Jump to the original submission)

Tue 20 Dec 2011 10:15:15 PM UTC, comment #6:

I checked in the following changeset.

http://hg.savannah.gnu.org/hgweb/octave/rev/9aff66860e03

John W. Eaton <jwe>
Project Administrator
Tue 20 Dec 2011 07:13:38 PM UTC, comment #5:

Check the function validatestring() which was explicitly designed to help handle these Matlab input quirks. It can gracefully expand short options to long options. The help text is

But cellfun, which is a C++ function, has no obvious way to call the validatestring.m file.

Rik <rik5>
Project Administrator
Tue 20 Dec 2011 07:32:21 AM UTC, comment #4:

Also, in Matlab 'un' works, but 'u'
fails, so it appears to not be case sensitive.

Michael Godfrey <godfrey>
Project Member
Tue 20 Dec 2011 06:07:44 AM UTC, comment #3:

Maybe it is just that Matlab accepts any unique parameter. Can you check to see whether it also accepts "uniformoutpu", "uniformoutp", "uniformout", ..., "u"?

Matlab (R2009b) accepts all the shortenings until 'U'
which fails.

Michael

Michael Godfrey <godfrey>
Project Member
Tue 20 Dec 2011 04:37:58 AM UTC, comment #2:

Maybe it is just that Matlab accepts any unique parameter. Can you check to see whether it also accepts "uniformoutpu", "uniformoutp", "uniformout", ..., "u"?

John W. Eaton <jwe>
Project Administrator
Tue 20 Dec 2011 03:58:19 AM UTC, comment #1:

Are we really chasing after obsolete and undocumented Matlab features?

I'm a little reluctant to apply this change without some thought. Would you agree to apply it with a warning that this option is obsolete?

Jordi GutiƩrrez Hermoso <jordigh>
Project Administrator
Mon 19 Dec 2011 11:08:41 PM UTC, original submission:

The Matlab cellfun() function accepts the 'uniform' option as equivalent to 'UniformOutput' (up to R2011b at least). The former would seem to be obsolete, but is in significant use in the wild. It would be useful if Octave's cellfun() did likewise.

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

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by godfrey (Posted a comment)
  • -unavailable- added by jwe (Posted a comment)
  • -unavailable- added by jordigh (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 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 20 Dec 2011 10:15:15 PM UTCjweStatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1