MATLAB Answers

How to integrate a matrix of a certain dimension?!

13 views (last 30 days)
Shashank
Shashank on 19 Dec 2012
Suppose I have a temperature matrix, T = zeros(Nz+1,Nt+1). Nz are number of elements in the z-axis and Nt are number of elements in the time-axis.
What command should I use for calculating the following integral?
E = integral of [A*T(z,:)*exp(-B*z)] with limits z = 0 to L.
Here, the temperature inside the integral is a function of the position z at a certain time.
Any kind of help will be appreciated. Thanks.
  6 Comments
Shashank
Shashank on 19 Dec 2012
Or is there a way to convert the temperature data points into a polynomial so that calculation becomes easy? Maybe use a curve-fit?

Sign in to comment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!