Symbolic integration function plot
Mostrar comentarios más antiguos
Hi,
I have a problem.
I have two functions
H(t,m) = -(0.8e-3.*m./(-0.1e-1-0.7e-1.*exp(-2.*t))-0.112e-3.*m.*t.*exp(-.2.*t)./(-0.1e-1-0.7e-1.*exp(-2.*t)).^2).*exp(0.8e-3.*m.*t./(-0.1e-1-0.7e-1.*exp(-2.*t)))
and I have mfile for H.
now I have another function in which I have integral from H with respect to t from 0 to x).
F(x,y) = int(H(t,y),t,0,x);
how can I possibly plot this function F.
Thanks in advanced.
Respuestas (3)
Walter Roberson
el 4 de Mayo de 2013
You cannot do numeric integration if you have an undefined variable.
You can do symbolic integration. Are x and y being passed in? If they are then
function r = F(x, y)
syms t
r = int( H(t,y), t, 0, x);
end
Lukas
el 4 de Mayo de 2013
0 votos
1 comentario
Walter Roberson
el 4 de Mayo de 2013
Not every function has an explicit integral.
Lukas
el 4 de Mayo de 2013
0 votos
Categorías
Más información sobre 2-D and 3-D Plots 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!