bugGNU Octave - Bugs: bug #38686, ndgrid(1:3) should return a vector

 
 

bug #38686: ndgrid(1:3) should return a vector

Submitted by:  Julien Bect <jbect>
Submitted on:  Mon 08 Apr 2013 08:16:12 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.

 

Fri 17 May 2013 06:00:50 PM UTC, comment #2:

I applied the patch:

http://hg.savannah.gnu.org/hgweb/octave/rev/558e1ce7247b

Thanks.

John W. Eaton <jwe>
Project Administrator
Sat 11 May 2013 10:02:14 AM UTC, comment #1:

To me it looks like the ndgrid implementation imitates meshgrid. Mathworks documentation is consistent with the behavior observed by the OP. Patch attached.

(file #28065)

Clemens Buchacher <drizzd>
Mon 08 Apr 2013 08:16:12 PM UTC, original submission:

ndgrid with a single vector argument should return a vector.

Here is what I get with Matlab R2012a:

Here is what I get with Octave 3.7.2+:

Julien Bect <jbect>

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #28065:  ndgrid-1d.patch added by drizzd (1kB - text/x-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by jwe (Posted a comment)
  • -unavailable- added by jordigh (Updated the item)
  • -unavailable- added by drizzd (Updated the item)
  • -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 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 17 May 2013 06:00:50 PM UTCjweStatusPatch Submitted=>Fixed
      Open/ClosedOpen=>Closed
    Sat 11 May 2013 10:44:09 AM UTCjordighStatusNone=>Patch Submitted
    Sat 11 May 2013 10:02:14 AM UTCdrizzdAttached File-=>Added ndgrid-1d.patch, #28065

    Back to the top


    Powered by Savane 3.1-cleanup