bugGNU Octave - Bugs: bug #38685, ndgrid([]) should return an empty...

 
 

bug #38685: ndgrid([]) should return an empty matrix

Submitted by:  Julien Bect <jbect>
Submitted on:  Mon 08 Apr 2013 08:07:59 PM UTC  
 
Category: InterpreterSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Matlab Compatibility
Status: FixedAssigned to: None
Originator Name: Julien BectOpen/Closed: Closed
Release: devOperating System: GNU/Linux

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

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

 

Wed 19 Jun 2013 11:54:25 PM UTC, comment #1:

I fixed the handling of empty inputs with this changeset (http://hg.savannah.gnu.org/hgweb/octave/rev/e205f5ea826a). You will need to use the development sources in order to see the fix or wait for the 3.8 release.

Rik <rik5>
Project Administrator
Mon 08 Apr 2013 08:07:59 PM UTC, original submission:

ndgrid() fails if one of its arguments is empty. For matlab compatibility, it should return an empty matrix instead.

Here is what I get with Matlab R2012a:

Julien Bect <jbect>

 

(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 jbect (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
    Wed 19 Jun 2013 11:54:25 PM UTCrik5StatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup