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

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

[Octave-bug-tracker] [bug #33292] trapz on matrices does not allow a vec


From: Rik
Subject: [Octave-bug-tracker] [bug #33292] trapz on matrices does not allow a vector as first argument
Date: Thu, 12 May 2011 19:19:36 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:2.0.1) Gecko/20100101 Firefox/4.0.1

Follow-up Comment #3, bug #33292 (project octave):

trapz is supposed to work for ND-arrays.  Could the original poster verify
that Matlab accepts vectors for the first argument even when the array is
multi-dimensional?  The proposed patch doesn't handle this case, but it may
not be important if Matlab doesn't as well.  Sample test code:


y = reshape (1:24, [4 3 2]);
x = [1 2];
trapz (x, y, 3)
 


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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