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

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

[Octave-bug-tracker] [bug #51728] del2 fails on 1-D input with a vector


From: Guillaume
Subject: [Octave-bug-tracker] [bug #51728] del2 fails on 1-D input with a vector as spacing
Date: Thu, 24 Aug 2017 05:23:31 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0

Follow-up Comment #5, bug #51728 (project octave):

On Matlab R2017a:


> del2 (1:5, ones (5,5), 1)

ans =

   NaN   NaN   NaN   NaN   NaN

>> del2 (exp ([1:5]), 2, 5)

ans =

   -0.3603    0.5016    1.3635    3.7064    6.0493

>> xx = meshgrid (1:5)

xx =

     1     2     3     4     5
     1     2     3     4     5
     1     2     3     4     5
     1     2     3     4     5                                                
                      
     1     2     3     4     5                                                
                      
                                                                              
                      
>> del2 (exp (xx), 2, 5)                                                      
                      
                                                                              
                      
ans =                                                                         
                      
                                                                              
                      
   -0.3603    0.5016    1.3635    3.7064    6.0493                            
                      
   -0.3603    0.5016    1.3635    3.7064    6.0493                            
                      
   -0.3603    0.5016    1.3635    3.7064    6.0493                            
                      
   -0.3603    0.5016    1.3635    3.7064    6.0493                            
                      
   -0.3603    0.5016    1.3635    3.7064    6.0493                            
                      


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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