Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
Drexel University or The Math Forum.


Tot
Posts:
8
Registered:
4/25/13


Creation of a list of functions, multiplying functions and integrating them
Posted:
Apr 25, 2013 4:44 AM


Hi,
I am trying to write a system of n nonlinear equations in Matlab. These functions are basically written as the integral of a product of exponentials.
I tried doing this with a forloop and integrating the whole thing thanks to 'trapz' but the 'fsolve' doesn't find the solutions, and I checked the values given by 'trapz' : they are not sufficiently precise.
I want to use 'quad' or other methods to integrate, but the input argument has to be a function, so how can I create a list (or a matrix) of functions, for example function handles or splines, and then multiply them, directly or with a loop?
Thank you for your help, don't hesitate if it is not clear, I will give more details if necessary.
Najeeb



