Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Creation of a list of functions, multiplying functions and integrating them
Replies: 3   Last Post: Apr 25, 2013 10:48 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
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
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

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 for-loop 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



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.