How to integrate a matrix of a certain dimension?!
Mostrar comentarios más antiguos
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 comentarios
Walter Roberson
el 19 de Dic. de 2012
Is that intended to be a single integral?? Neither your z nor your time are continuous, and you showed limits only for z.
I am wondering if you want is more or less the 2D equivalent of trapz() ?
Shashank
el 19 de Dic. de 2012
Shashank
el 19 de Dic. de 2012
Walter Roberson
el 19 de Dic. de 2012
I don't think I really understand, but as your z is discrete, you should probably use trapz()
Shashank
el 19 de Dic. de 2012
Shashank
el 19 de Dic. de 2012
Respuestas (1)
Muruganandham Subramanian
el 19 de Dic. de 2012
Editada: Muruganandham Subramanian
el 19 de Dic. de 2012
0 votos
>> help syms
>>help int
Refer this link:
or If you have R2012b version, refer this
1 comentario
Shashank
el 19 de Dic. de 2012
Categorías
Más información sobre Numerical Integration and Differentiation en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!