help-octave
[Top][All Lists]
Advanced

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

Re: sqp() with trapz()


From: Przemek Klosowski
Subject: Re: sqp() with trapz()
Date: Mon, 26 Aug 2019 14:38:38 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1

On 8/26/19 2:32 PM, dg.aragones wrote:
Yes, but I don't understand why, because they have also the same size. They
are both 51x1 vectors.

Nope, one is 1x51 and the other is 51x1.

By using @ functions, it's harder to debug this because you can't put tests/printouts into them, so I redefined them to use the function trapz_debug, and defined it like so:

function f = trapz_debug (a, b)
  size (a)
  size (b)
  f = trapz (a, b)
endfunction





reply via email to

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