how to integrate over array boundaries
74 views (last 30 days)
Hi Guys ,
I want to write a code which includes an array like x=[1 2 3;4 5 6] and
my function is
Q= integral ( f,0,x);
. I couldn't be successful about it and I need help how can I take an integral over array boundries like this.
Roger Stafford on 19 Mar 2015
If you consult the website:
you will find that 'integral' does not accept arrays for its integration limits. You must use scalar (individual numbers) quantities for these limits. This means of course that you will have to use for-loop constructs to compute Q in a corresponding matrix for each of the separate values in x.