[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Numerical integration with quadcc
From: |
Carlo De Falco |
Subject: |
Re: Numerical integration with quadcc |
Date: |
Mon, 10 Jun 2019 11:21:08 +0000 |
Hi,
> Il giorno 07 giu 2019, alle ore 21:25, BGreen <address@hidden> ha scritto:
>
> My problem is that I get the error "integrand F must return a single,
> real-valued vector of the same size as the input" even when the integrand
> DOES return such a vector.
...
> I wrote the loop over the length of the argument to ensure that it would
> return a vector. Furthermore, if I call something simple as a test like
>
> integ_F0011same(linspace(1,3,10))
>
> inside the function, a 10-element is returned as expected. Why am I getting
> this error?
I am not 100% sure this is the problem but I suspect the relevant part of the
error
"integrand F must return a single, real-valued vector of the same size as the
input"
message is
"of the same size as the input"
with your specific test it works, but if you try for example :
integ_F0011same (ones(7,1))
the output does not have the same shape and size of input ...
Hope this helps,
c.