octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #48523] 3d meshgrid incorrect


From: Mike Miller
Subject: [Octave-bug-tracker] [bug #48523] 3d meshgrid incorrect
Date: Fri, 15 Jul 2016 16:18:08 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:47.0) Gecko/20100101 Firefox/47.0

Update of bug #48523 (project octave):

                Severity:              3 - Normal => 2 - Minor              
              Item Group:                    None => Matlab Compatibility   
                  Status:                    None => Confirmed              
                 Release:                   4.0.2 => dev                    
        Operating System:               GNU/Linux => Any                    

    _______________________________________________________

Follow-up Comment #1:

Thanks. This should be an easy fix in the meshgrid.m file.

This does work if nargout == 3, but Octave is using nargout to determine
whether the space should be 2 or 3 dimensions and ignoring the 3rd input
argument if nargout < 3.


>> x = meshgrid(1:2, 1:3, 1:5); size (x)
ans =

   3   2

>> [x,~,~] = meshgrid(1:2, 1:3, 1:5); size (x)
ans =

   3   2   5



If nargin == 1, then the results should still be based on nargout as it is
done currently, but if nargin > 1 then the output should probably be derived
from that.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?48523>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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