Symbolic integration function plot

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.

답변 (3개)

Walter Roberson
Walter Roberson 2013년 5월 4일

0 개 추천

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
Lukas 2013년 5월 4일

0 개 추천

First of all thanks for the answer. I tried yours solution but it will not return explicit solution and I can't plot. I'm really new at this.
Lukas
Lukas 2013년 5월 4일

0 개 추천

Oh I got thanks anyway I used the integral function

카테고리

도움말 센터File Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

질문:

2013년 5월 4일

Community Treasure Hunt

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

Start Hunting!

Translated by