How to write a function and create 3 nested loop then evaluate an integral?
Mostrar comentarios más antiguos
I have a matrix of Density values (rho) of size 15x121 , I have lambda is a row of size 1x20 and the values of lambda between 0 and 2 .I want to evaluate the following function : f(t)= [exp(-lambda*t)*rho] then I want the integral of f with respect to t and the integral from t_j-1 to t_j The values of t is between 0 and 1 , and those are 15 intervals (( i.e 15 intervals [t_j-1,t_j] ))
Thanks for any help
Respuesta aceptada
Más respuestas (1)
yonatan gerufi
el 6 de Oct. de 2014
Editada: yonatan gerufi
el 6 de Oct. de 2014
for 3 dim integral use:
integral3
1 comentario
Fatin
el 6 de Oct. de 2014
Categorías
Más información sobre Creating and Concatenating Matrices 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!